From: "Dan, Ho Jin" Newsgroups: comp.os.msdos.djgpp Subject: [Q] c++ library error... Date: Tue, 28 Apr 1998 13:09:58 +0900 Organization: Set your organization ($ORGANIZATION) Lines: 60 Message-ID: <35455695.6E201906@cais.kaist.ac.kr> NNTP-Posting-Host: casad4.kaist.ac.kr Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk when i compiled a simple c++ program with djgpp, i got the error messages such that C:\lang\djgpp\work>gcc -lgpp minprint.cpp c:/lang/djgpp/tmp\ccdaaaaa(.text+0x1c4):minprint.cc: undefined reference to `endl(ostream &)' c:/lang/djgpp/tmp\ccdaaaaa(.text+0x1cd):minprint.cc: undefined reference to `cout' c:/lang/djgpp/tmp\ccdaaaaa(.text+0x1d2):minprint.cc: undefined reference to `ostream::operator<<(int)' c:/lang/djgpp/tmp\ccdaaaaa(.text+0x1dd):minprint.cc: undefined reference to `ostream::operator<<(ostream &(*)(ostream ))' C:\lang\djgpp\work> i tried compiling with several options, but i always had such messages... i also extracted a lgp271b.zip file and go well with djgpp c-compiler. i found the standard c plus library at ..\djgpp\info\ such as iostream.i1, etc what is my probem??? my digpp.env ... #= DJDIR=%:/>DJGPP% +USER=dosuser +TMPDIR=%DJDIR%/tmp +EMU387=%DJDIR%/bin/emu387.dxe +LFN=y [bison] BISON_HAIRY=%DJDIR%/lib/bison.hai BISON_SIMPLE=%DJDIR%/lib/bison.sim [cpp] CPLUS_INCLUDE_PATH=%/>;CPLUS_INCLUDE_PATH%%DJDIR%/lang/cxx;%DJDIR%/include;%DJDIR%/contrib/grx20/include C_INCLUDE_PATH=%/>;C_INCLUDE_PATH%%DJDIR%/include;%DJDIR%/contrib/grx20/include OBJCPLUS_INCLUDE_PATH=%/>;OBJCPLUS_INCLUDE_PATH%%DJDIR%/include;%DJDIR%/lang/objc OBJC_INCLUDE_PATH=%/>;OBJC_INCLUDE_PATH%%DJDIR%/include;%DJDIR%/lang/objc [gcc] COMPILER_PATH=%/>;COMPILER_PATH%%DJDIR%/bin LIBRARY_PATH=%/>;LIBRARY_PATH%%DJDIR%/lib;%DJDIR%/contrib/grx20/lib [info] INFOPATH=%/>;INFOPATH%%DJDIR%/info;%DJDIR%/gnu/emacs/info INFO_COLORS=0x1f.0x31