Message-ID: <33AB2D1B.37E9@evolution.org> Date: Sat, 21 Jun 1997 03:23:39 +0200 From: Makulik Reply-To: makulik AT evolution DOT org MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp Subject: Linking problem with DJCPP V2 Content-Type: multipart/mixed; boundary="------------4D0737122614" NNTP-Posting-Host: 195.38.128.189 Lines: 106 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Dies ist eine mehrteilige Nachricht im MIME-Format. --------------4D0737122614 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Hi, I wrote a simple parser/scanner pair with bison & flex. Now when I = try to link the .o files I get a lot of undefined references for nearly all functions referenced in my files (even yyparse, though its defined in one of the .o files!). I compiled the bison and flex output using the -x'c++' option, so the =2Eo files should contain the correctly mangled C++ function tags. I append the error listing of the linker call, so you can see that the -lgpp and some other libraries are already mentioned explicitely in the command line. The environment variables LIBPATH and LIBRARY_PATH are set correctly. May be I've missed something when installing the C++ libs, I've just unzipped the download files and didn't anything further, but it seems as all libraries are correctly installed under /djgnu/lib (/djgnu is my installation directory for all djgpp related files). So does anyone of you has an idea what could be wrong?? Thanx in advance, G=FCnther -- = ~~o~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~= ~ O o __/|_ "I'm swimming, | Guenther Makulik O /* \/| I'm swimming ..." | E-Mail: makulik AT evolution DOT org \_U___/\| (Sonic Youth) | http://members.evolution.org/gmakulik/ --------------4D0737122614 Content-Type: text/plain; charset=us-ascii; name="Make.err" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="Make.err" gcc -Lc:/djgnu/lib -o ../bin/trees tparse.o tscan.o -lgpp -liostr -lbison -lflex gcc -Lc:/djgnu/lib -o ../bin/trees tparse.o tscan.o -lgpp -liostr -lbison -lflex tparse.o(.text+57b): undefined reference to `endl(ostream &)' tparse.o(.text+585): undefined reference to `cout' tparse.o(.text+58a): undefined reference to `ostream::operator<<(const char *)' tparse.o(.text+59e): undefined reference to `ostream::operator<<(ostream &(*)(ostream &))' tparse.o(.text+5ab): undefined reference to `endl(ostream &)' tparse.o(.text+5b5): undefined reference to `cout' tparse.o(.text+5ba): undefined reference to `ostream::operator<<(const char *)' tparse.o(.text+5c5): undefined reference to `ostream::operator<<(ostream &(*)(ostream &))' tparse.o(.text+5d3): undefined reference to `endl(ostream &)' tparse.o(.text+5dd): undefined reference to `cout' tparse.o(.text+5e2): undefined reference to `ostream::operator<<(const char *)' tparse.o(.text+5ed): undefined reference to `ostream::operator<<(ostream &(*)(ostream &))' tparse.o(.text+5fb): undefined reference to `endl(ostream &)' tparse.o(.text+605): undefined reference to `cout' tparse.o(.text+60a): undefined reference to `ostream::operator<<(const char *)' tparse.o(.text+61e): undefined reference to `ostream::operator<<(ostream &(*)(ostream &))' tparse.o(.text+62b): undefined reference to `endl(ostream &)' tparse.o(.text+635): undefined reference to `cout' tparse.o(.text+63a): undefined reference to `ostream::operator<<(const char *)' tparse.o(.text+64e): undefined reference to `ostream::operator<<(ostream &(*)(ostream &))' tparse.o(.text+65b): undefined reference to `endl(ostream &)' tparse.o(.text+665): undefined reference to `cout' tparse.o(.text+66a): undefined reference to `ostream::operator<<(const char *)' tparse.o(.text+67e): undefined reference to `ostream::operator<<(ostream &(*)(ostream &))' tparse.o(.text+68b): undefined reference to `endl(ostream &)' tparse.o(.text+695): undefined reference to `cout' tparse.o(.text+69a): undefined reference to `ostream::operator<<(const char *)' tparse.o(.text+6ae): undefined reference to `ostream::operator<<(ostream &(*)(ostream &))' tparse.o(.text+6bb): undefined reference to `endl(ostream &)' tparse.o(.text+6c5): undefined reference to `cout' tparse.o(.text+6ca): undefined reference to `ostream::operator<<(const char *)' tparse.o(.text+6de): undefined reference to `ostream::operator<<(ostream &(*)(ostream &))' tparse.o(.text+6eb): undefined reference to `endl(ostream &)' tparse.o(.text+6f5): undefined reference to `cout' tparse.o(.text+6fa): undefined reference to `ostream::operator<<(const char *)' tparse.o(.text+70e): undefined reference to `ostream::operator<<(ostream &(*)(ostream &))' tparse.o(.text+719): undefined reference to `endl(ostream &)' tparse.o(.text+723): undefined reference to `cout' tparse.o(.text+728): undefined reference to `ostream::operator<<(const char *)' tparse.o(.text+73c): undefined reference to `ostream::operator<<(ostream &(*)(ostream &))' tparse.o(.text+747): undefined reference to `endl(ostream &)' tparse.o(.text+751): undefined reference to `cout' tparse.o(.text+756): undefined reference to `ostream::operator<<(const char *)' tparse.o(.text+76a): undefined reference to `ostream::operator<<(ostream &(*)(ostream &))' tparse.o(.text+9de): undefined reference to `endl(ostream &)' tparse.o(.text+9f1): undefined reference to `yylineno' tparse.o(.text+9fb): undefined reference to `cout' tparse.o(.text+a00): undefined reference to `ostream::operator<<(const char *)' tparse.o(.text+a0e): undefined reference to `ostream::operator<<(int)' tparse.o(.text+a1c): undefined reference to `ostream::operator<<(const char *)' tparse.o(.text+a27): undefined reference to `ostream::operator<<(const char *)' tparse.o(.text+a32): undefined reference to `ostream::operator<<(const char *)' tparse.o(.text+a3d): undefined reference to `ostream::operator<<(ostream &(*)(ostream &))' tscan.o(.text+52d): undefined reference to `yywrap' tscan.o(.text+d11): undefined reference to `yywrap' tscan.o(.text+f8d): undefined reference to `isatty(int)' main.o(.text+9): undefined reference to `yyparse' make: Error code 1 --------------4D0737122614--