RE: [Boost-Users] Linking Problem with GCC
Hi Jeff, I agree that latest problem is possibly an STL/environment problem specifically related to linking a DLL. An exe compiles and links fine. I'm only new to GCC and am using v2.95. I tried updating to the 3.0.4 libraries but that didn't seem to help any. Anyway, I only got into this bind because VC7 and VC6 both run into Internal Compiler Errors when trying to compile (only a select part) of the BGL. I got a work around from Microsoft for one compiler bug, made a fix to the BGL code to get past another, then hit yet another internal compiler error. Where does all this happen? Specifically with examples from the BGL text book including the edge connectivity example in section 8.2. I don't blame the BGL for the bugs in the VC compilers and I guess the remainder of my woes are most likely attributable to my inexperience with the other compilers/environments. It seems, however, that for the code I am tryng to compile atleast, that there is a hurdle at every corner! I'm scared that even if I do get something going Ok, the second I use a new template I'll be in uncharted territory again. Unfortunately I can't afford this kind of risk on a fast track project. Maybe when I have more time, I'll come back to the BGL and try again. Thank you for your kind response. Wayne. -----Original Message----- From: Jeff Garland [mailto:jeff@crystalclearsoftware.com] Sent: Tuesday, April 16, 2002 4:17 PM To: Boost-Users@yahoogroups.com Subject: RE: [Boost-Users] Linking Problem with GCC > Hi Jim, > > Yep its boost (BGL - graph) related. (Refer my 3 previous postings 11/4, > 12/4 & 12/4). Granted, this particular posting didn't have the word > "boost" in it. > > Like I say. VC7 croaks, VC6 croaks, GCC croaks, Borland (bcc32) croaks. > BGL sounds excellent in theory. GTL compiles first time. > > Has anyone else had a better experience than mine with the BGL? > > Kind Regards, > Wayne Hartell. Sure, I've compiled earlier versions of BGL with GCC (of course this proves little since we might have been using different parts). According to the compiler status page the graph test also works under BCC and VC6SP5. http://www.boost.org/status/cs-win32.html Which again doesn't prove much since we don't know the difference in what you are doing from the graph test does. From your previous mail the GCC problems doesn't seem to be a boost problem at all: :\data\software\code\controlled\snowbird\support\hminetworkservices\net worklib\maindll.o(.text$_S_oom_malloc__t23__malloc_alloc_template1i0Ui+0 x1a)://c/data/software/code/controlled/snowbird/support/hminetworkservic es/networklib/maindll.cpp: undefined reference to `endl(ostream &)' c:\data\software\code\controlled\snowbird\support\hminetworkservices\net worklib\maindll.o(.text$_S_oom_malloc__t23__malloc_alloc_template1i0Ui+0 x27)://c/data/software/code/controlled/snowbird/support/hminetworkservic es/networklib/maindll.cpp: undefined reference to `cerr' This looks to be an environment issue because it is complaining about not being able to find standard library components: cerr and endl. Hope this helps. Jeff Yahoo! Groups Sponsor ADVERTISEMENT Click Here! <http://rd.yahoo.com/M=194081.1994012.3473453.1261774/D=egroupweb/S=1705 006788:HM/A=1036972/R=0/*http://www.ediets.com/start.cfm?code=3466> <http://us.adserver.yahoo.com/l?M=194081.1994012.3473453.1261774/D=egrou pmail/S=1705006788:HM/A=1036972/rand=430984951> Info: http://www.boost.org Wiki: http://www.crystalclearsoftware.com/cgi-bin/boost_wiki/wiki.pl Unsubscribe: mailto:boost-users-unsubscribe@yahoogroups.com Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service http://docs.yahoo.com/info/terms/ . [Non-text portions of this message have been removed]
I agree that latest problem is possibly an STL/environment problem specifically related to linking a DLL. An exe compiles and links fine. I'm only new to GCC and am using v2.95. I tried updating to the 3.0.4 libraries but that didn't seem to help any.
Which platform/environment are you using GCC under cygwin, linux, dos? In any case, the cout and endl symbols shoud be in the library. Also, it would be nice to know the exact line you are using to invoke both the compile and link step.
Anyway, I only got into this bind because VC7 and VC6 both run into Internal Compiler Errors when trying to compile (only a select part) of the BGL. I got a work around from Microsoft for one compiler bug, made a fix to the BGL code to get past another, then hit yet another internal compiler error. Where does all this happen? Specifically with examples from the BGL text book including the edge connectivity example in section 8.2.
That's not helping because I don't have the BGL book yet.
Thank you for your kind response.
Sure. Jeff
participants (2)
-
Jeff Garland
-
Wayne Hartell