Message-ID: <20000301061612.74954.qmail@hotmail.com> X-Originating-IP: [203.8.107.182] From: "Kozmas Muriopulos" To: djgpp AT delorie DOT com Subject: DJGPP - Undefined References Date: Wed, 01 Mar 2000 14:16:12 WST Mime-Version: 1.0 Content-Type: text/plain; format=flowed Reply-To: djgpp AT delorie DOT com Hi, I recently downloaded a copy of DJGPP an can't compile programs because it gives me undefined references. The following is the data that you requested be sent with requests for help : The following is the output of go32-v2 go32/v2 version 2.0 built Dec 24 1999 17:46:57 Usage: go32 coff-image [args] Rename this to go32.exe only if you need a go32 that can run v2 binaries as well as v1 binaries (old makefiles). Put ahead of the old go32 in your PATH but do not delete your old go32 - leave it in the PATH after this one. Set GO32_V2_DEBUG=y in the environment to get verbose output. DPMI memory available: 10967 Kb DPMI swap space available: 2197 Kb The following are the compilation errors produced by the compiler Reading specs from d:/djgpp/lib/specs gcc version 2.95.2 19991024 (release) d:/djgpp/bin/cpp.exe -lang-c++ -v -isystem d:/djgpp/bin/include -D__GNUC__=2 -D__GNUG__=2 -D__GNUC_MINOR__=95 -D__cplusplus -Dunix -Di386 -DGO32 -DMSDOS -DDJGPP=2 -DDJGPP_MINOR=1 -D__unix__ -D__i386__ -D__GO32__ -D__MSDOS__ -D__DJGPP__=2 -D__DJGPP_MINOR__=1 -D__unix -D__i386 -D__GO32 -D__MSDOS -D__DJGPP=2 -D__DJGPP_MINOR=1 -D__EXCEPTIONS prog1.cc d:/djgpp/tmp\cc4WgPwM.ii GNU CPP version 2.7.2.1 (80386, BSD syntax) #include "..." search starts here: #include <...> search starts here: d:/djgpp/bin/include d:/djgpp/lang/cxx d:/djgpp/include d:/djgpp/contrib/grx20/include /usr/local/lib/g++-include /usr/local/include /usr/local/go32/include /usr/local/lib/gcc-lib/go32/2.7.2.1/include /usr/include End of search list. d:/djgpp/lib/gcc-lib/djgpp/2.952/cc1plus.exe d:/djgpp/tmp\cc4WgPwM.ii -quiet -dumpbase prog1.cc -version -o d:/djgpp/tmp\ccB66Df3.s GNU C++ version 2.95.2 19991024 (release) (djgpp) compiled by GNU C version 2.95.2 19991024 (release). d:/djgpp/bin/as.exe -o d:/djgpp/tmp\ccZ2DvTQ.o d:/djgpp/tmp\ccB66Df3.s d:/djgpp/bin/ld.exe d:/djgpp/lib/crt0.o -Ld:/djgpp/lib -Ld:/djgpp/lib/gcc-lib/djgpp/2.952 -Ld:/djgpp/bin -Ld:/djgpp/lib d:/djgpp/tmp\ccZ2DvTQ.o -lgpp -lstdcxx -Tdjgpp.djl -lgcc -lc -lgcc d:/djgpp/lib/libstdcxx.a(iostream.o)(.text+0x1d50):iostream.cc: undefined reference to `__rtti_class' d:/djgpp/lib/libstdcxx.a(iostream.o)(.text+0x212c):iostream.cc: undefined reference to `__rtti_class' d:/djgpp/lib/libstdcxx.a(iostream.o)(.text+0x261b):iostream.cc: undefined reference to `__rtti_class' d:/djgpp/lib/libstdcxx.a(iostream.o)(.text+0x2642):iostream.cc: undefined reference to `__rtti_class' d:/djgpp/lib/libstdcxx.a(iostream.o)(.text+0x265b):iostream.cc: undefined reference to `__rtti_class' d:/djgpp/lib/libstdcxx.a(iostream.o)(.text+0x27bb):iostream.cc: more undefined references to `__rtti_class' follow d:/djgpp/lib/libstdcxx.a(streambuf.o)(.text+0x709):streambuf.cc: undefined reference to `__rtti_si' d:/djgpp/lib/libstdcxx.a(streambuf.o)(.text+0x9e5):streambuf.cc: undefined reference to `__rtti_si' d:/djgpp/lib/libstdcxx.a(streambuf.o)(.text+0xf4c):streambuf.cc: undefined reference to `__rtti_si' d:/djgpp/lib/libstdcxx.a(streambuf.o)(.text+0xf66):streambuf.cc: undefined reference to `__rtti_si' d:/djgpp/lib/libstdcxx.a(streambuf.o)(.text+0x1137):streambuf.cc: undefined reference to `__rtti_user' d:/djgpp/lib/libstdcxx.a(streambuf.o)(.text+0x1163):streambuf.cc: undefined reference to `__rtti_user' d:/djgpp/lib/libstdcxx.a(filebuf.o)(.text+0x43):filebuf.cc: undefined reference to `__throw' d:/djgpp/lib/libstdcxx.a(filebuf.o)(.text+0x61):filebuf.cc: undefined reference to `terminate(void)' d:/djgpp/lib/libstdcxx.a(filebuf.o)(.text+0xa4):filebuf.cc: undefined reference to `__throw' d:/djgpp/lib/libstdcxx.a(filebuf.o)(.text+0xc1):filebuf.cc: undefined reference to `terminate(void)' d:/djgpp/lib/libstdcxx.a(filebuf.o)(.text+0x118):filebuf.cc: undefined reference to `__throw' d:/djgpp/lib/libstdcxx.a(filebuf.o)(.text+0x135):filebuf.cc: undefined reference to `terminate(void)' d:/djgpp/lib/libstdcxx.a(stdiostream.o)(.text+0x41):stdiostream.cc: undefined reference to `__throw' d:/djgpp/lib/libstdcxx.a(stdiostream.o)(.text+0x61):stdiostream.cc: undefined reference to `terminate(void)' d:/djgpp/lib/libstdcxx.a(stdiostream.o)(.text+0x575):stdiostream.cc: undefined reference to `__rtti_si' d:/djgpp/lib/libstdcxx.a(stdiostream.o)(.text+0x5d0):stdiostream.cc: undefined reference to `__rtti_class' d:/djgpp/lib/libstdcxx.a(stdiostream.o)(.text+0x706):stdiostream.cc: undefined reference to `__throw' d:/djgpp/lib/libstdcxx.a(stdiostream.o)(.text+0x711):stdiostream.cc: undefined reference to `__throw' d:/djgpp/lib/libstdcxx.a(stdiostream.o)(.text+0x781):stdiostream.cc: undefined reference to `terminate(void)' d:/djgpp/lib/libstdcxx.a(stdiostream.o)(.text+0x800):stdiostream.cc: undefined reference to `__rtti_class' d:/djgpp/lib/libstdcxx.a(stdiostream.o)(.text+0x929):stdiostream.cc: undefined reference to `__throw' d:/djgpp/lib/libstdcxx.a(stdiostream.o)(.text+0x931):stdiostream.cc: undefined reference to `__throw' d:/djgpp/lib/libstdcxx.a(stdiostream.o)(.text+0x9a1):stdiostream.cc: undefined reference to `terminate(void)' The following is the output produced by typing set at the command line TMP=C:\WINDOWS\TEMP TEMP=C:\WINDOWS\TEMP PROMPT=$p$g winbootdir=C:\WINDOWS COMSPEC=C:\WINDOWS\COMMAND.COM PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;C:\SONY_8X;C:\DOSX;D:\DJGPP\BIN;C:\EMACS;C:\FLOW; DJGPP=d:/djgpp/djgpp.env windir=C:\WINDOWS BLASTER=A220 I10 D3 H5 T6 CMDLINE=info The following is a listing of my autoexec.bat file REM *** By Sony 8X CD-ROM Installer 7-05-1999 @loadhigh C:\WINDOWS\COMMAND\SHARE.EXE /l:500 /f:5100 PATH=C:\sony_8x;C:\DOSX;d:\djgpp\bin;C:\EMACS;c:\flow; C:\MSCDEX.EXE /E:SONY_8X0 /M:12 /V d:\djgpp\bin\setdjgpp D:\djgpp d:/djgpp doskey  REM Following lines were added by LBINSTDJ, the DJGPP installer SET PATH=D:\DJGPP\BIN;%PATH% SET DJGPP=D:\DJGPP\djgpp.env The following is a list of my config.sys file FILES=70 BUFFERS=40 REM *** By Sony 8X CD-ROM Installer 7-05-1999 DEVICE=C:\SONY_8X\ATAPI_CD.SYS /E:SONY_8X0 /Q /I:0 COUNTRY=061,,c:\windows\command\country.sys LastDrive=G  I tried the command "nm -C *.a" in the lib directory, redirecting the output to a file and then used a text editor to search for the an undefined string as per the compiler output. All references to the undefined identifier __rtti_class had a "U" next to them, I assume this means undefined, so I am not sure if I am missing a library,any help will be greatly appreciated. Thanks Kozmas ______________________________________________________ Get Your Private, Free Email at http://www.hotmail.com