|
Replies:
4
-
Last Post:
Apr 14, 2006 11:18 PM
by: jmiller
|
Threads:
[
Previous
|
Next
]
|
|
Posts:
14
From:
San Jose, CA
Registered:
6/14/05
|
|
|
|
issues compiling IOMeter using build 16's g++
Posted:
Jun 29, 2005 11:04 AM
|
|
Looks like an issue with gcc headers concerning templates. Being primarily a C coder, templates make my brain bleed. Anyone got any ideas? When i have time i'll see if i can write up a short program that causes the same compile failure.
- bwong@shost4$ gmake -f Makefile-Solaris g++ -O -Wall -DUNIX -DSOLARIS -DNO_DYNAMO_VI -D_LARGEFILE64_SOURCE -DDYNAMO_DESTRUCTIVE -D_REENTRANT -c IOGlobals.cpp g++ -O -Wall -DUNIX -DSOLARIS -DNO_DYNAMO_VI -D_LARGEFILE64_SOURCE -DDYNAMO_DESTRUCTIVE -D_REENTRANT -c Pulsar.cpp In file included from /usr/sfw/lib/gcc/sparc-sun-solaris2.11/3.4.3/../../../../include/c++/3.4.3/sstr eam:640, from IOPort.h:81, from IOManager.h:75, from Pulsar.cpp:77: /usr/sfw/lib/gcc/sparc-sun-solaris2.11/3.4.3/../../../../include/c++/3.4.3/bi ts/sstream.tcc: In member function `virtual typename std::basic_stringbuf<_CharT, _Traits, _Alloc>::int_type std::basic_stringbuf<_CharT, _Traits, _Alloc>::overflow(typename _Traits::int_type)': /usr/sfw/lib/gcc/sparc-sun-solaris2.11/3.4.3/../../../../include/c++/3.4.3/bi ts/sstream.tcc:102: error: expected unqualified-id before '(' token /usr/sfw/lib/gcc/sparc-sun-solaris2.11/3.4.3/../../../../include/c++/3.4.3/bi ts/sstream.tcc:104: error: expected unqualified-id before '(' token gmake: *** [Pulsar.o] Error 1 - bwong@shost4$
|
|
|
Posts:
1
From:
Registered:
7/25/05
|
|
|
|
Re: issues compiling IOMeter using build 16's g++
Posted:
Jul 25, 2005 11:41 AM
in response to: bwong
|
|
Hello Did you get an answer to this question?
I am getting the same error with gcc 3.4.3 on RHEL 4
Regards Ramesh
|
|
|
|
Posts:
14
From:
San Jose, CA
Registered:
6/14/05
|
|
|
|
Re: issues compiling IOMeter using build 16's g++
Posted:
Jul 25, 2005 11:46 AM
in response to: rameshh
|
|
no. i haven't been able to look into it further, either. have you tried posting to gcc/g++ lists?
|
|
|
|
Posts:
1
From:
Registered:
10/7/05
|
|
|
|
Re: issues compiling IOMeter using build 16's g++
Posted:
Oct 7, 2005 12:51 PM
in response to: bwong
|
|
I found that I can build Pulsar.o by taking out the #defines for min and max in IOCommon.h (but not __max).
I don't yet have the linkage correct for the templates, but I get a bit further.
Jeff
|
|
|
|
Posts:
26
From:
Registered:
4/14/06
|
|
|
|
Re: issues compiling IOMeter using build 16's g++
Posted:
Apr 14, 2006 11:18 PM
in response to: bwong
|
|
Try adding -DNOMINMAX to your CFLAGS
|
|
|
|
|