Am unable to successfully build the Complex example from the CppUnit Cookbook. I get the following error report when linking:
cc -o complex complex.o -L/usr/local/lib -lcdrecord -lcppunit -lscg -bloadmap:loadmap ld: 0711-317 ERROR: Undefined symbol: __vft24__DynaCastDesc_si_public14__DynaCastDesc ld: 0711-317 ERROR: Undefined symbol: __vft13eti_cplusplus9type_info ld: 0711-317 ERROR: Undefined symbol: .__dl__FPv ld: 0711-317 ERROR: Undefined symbol: ._Xran__Q2_3std12_String_baseCFv ld: 0711-317 ERROR: Undefined symbol: ._Xlen__Q2_3std12_String_baseCFv ld: 0711-317 ERROR: Undefined symbol: .__setUncaughtExceptionFlag__3stdFb ld: 0711-317 ERROR: Undefined symbol: .__CleanupCatch ld: 0711-317 ERROR: Undefined symbol: .__nw__FUl ld: 0711-344 See the loadmap file loadmap for more information. *** Error code 8 clearmake: Error: Build script failed for "complex"
Here is the makefile that I am using (I'm not very experienced with makefiles, so it is quite possible that this is my problem...)
SYSLNK =-g CFLAGS =-c -bstatic -qlanglvl=noansifor -qonce -qnooptimize -qstaticinline -qidirfirst \ $(SYSLNK) -I/usr/local/cppunit/cppunit-1.6.2/include/ LIBS = -L/usr/local/lib -lcdrecord -lcppunit -lscg SRCPATH = /usr/local/cppunit-1.6.2/src/cppunit/ TARGETNAME = complex SRC = complex.C OBJ = complex.o
target : $(TARGETNAME)
$(TARGETNAME): $(OBJ) $(CC) -o $(TARGETNAME) $(OBJ) $(LIBS) -bloadmap:loadmap
complex.o: $(SRC) $(CC) $(CFLAGS) $(SRC)
Can anyone tell me if these symbols are CppUnit related? If not, can anyone give me a heads-up on where I should start to track them down?
Thanks, SHawn
I'm not at all familar with Unix and even less with AIX, but you should try: - enabling RTTI - enabling exception
to compile your project
The missing symbol seems related to this.
Baptiste.
Log in to post a comment.
Am unable to successfully build the Complex example from the CppUnit Cookbook. I get the following error report when linking:
cc -o complex complex.o -L/usr/local/lib -lcdrecord -lcppunit -lscg -bloadmap:loadmap
ld: 0711-317 ERROR: Undefined symbol: __vft24__DynaCastDesc_si_public14__DynaCastDesc
ld: 0711-317 ERROR: Undefined symbol: __vft13eti_cplusplus9type_info
ld: 0711-317 ERROR: Undefined symbol: .__dl__FPv
ld: 0711-317 ERROR: Undefined symbol: ._Xran__Q2_3std12_String_baseCFv
ld: 0711-317 ERROR: Undefined symbol: ._Xlen__Q2_3std12_String_baseCFv
ld: 0711-317 ERROR: Undefined symbol: .__setUncaughtExceptionFlag__3stdFb
ld: 0711-317 ERROR: Undefined symbol: .__CleanupCatch
ld: 0711-317 ERROR: Undefined symbol: .__nw__FUl
ld: 0711-344 See the loadmap file loadmap for more information.
*** Error code 8
clearmake: Error: Build script failed for "complex"
Here is the makefile that I am using (I'm not very experienced with makefiles, so it is quite possible that this is my problem...)
SYSLNK =-g
CFLAGS =-c -bstatic -qlanglvl=noansifor -qonce -qnooptimize -qstaticinline -qidirfirst \ $(SYSLNK) -I/usr/local/cppunit/cppunit-1.6.2/include/
LIBS = -L/usr/local/lib -lcdrecord -lcppunit -lscg
SRCPATH = /usr/local/cppunit-1.6.2/src/cppunit/
TARGETNAME = complex
SRC = complex.C
OBJ = complex.o
target : $(TARGETNAME)
$(TARGETNAME): $(OBJ)
$(CC) -o $(TARGETNAME) $(OBJ) $(LIBS) -bloadmap:loadmap
complex.o: $(SRC)
$(CC) $(CFLAGS) $(SRC)
Can anyone tell me if these symbols are CppUnit related? If not, can anyone give me a heads-up on where I should start to track them down?
Thanks,
SHawn
I'm not at all familar with Unix and even less with AIX, but you should try:
- enabling RTTI
- enabling exception
to compile your project
The missing symbol seems related to this.
Baptiste.