OpenSolaris

Collectives Discussions Documentation Download Source Browser

Home » OpenSolaris Forums » tools » gcc

Thread: issues compiling IOMeter using build 16's g++

Welcome, Guest Help
Login Login
Guest Settings Guest Settings
Reply to this Thread Reply to this Thread Search Forum Search Forum Back to Thread List Back to Thread List

Permlink Replies: 4 - Last Post: Apr 14, 2006 11:18 PM by: jmiller Threads: [ Previous | Next ]
bwong

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

  Click to reply to this thread Reply

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$

rameshh

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

  Click to reply to this thread Reply

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

bwong

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

  Click to reply to this thread Reply

no. i haven't been able to look into it further, either. have you tried posting to gcc/g++ lists?

jurlwin

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

  Click to reply to this thread Reply

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

jmiller

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

  Click to reply to this thread Reply

Try adding -DNOMINMAX to your CFLAGS




Terms of Use | Privacy | Trademarks | Copyright Policy | Site Guidelines
Your use of this web site or any of its content or software indicates your agreement to be bound by these Terms of Use.
© 2010, Oracle Corporation and/or its affiliates

Oracle Logo