From: Tatterdemalian Newsgroups: comp.os.msdos.djgpp Subject: DJGPP library problems Date: Tue, 22 Oct 2002 05:52:10 -0500 Organization: Posted via Supernews, http://www.supernews.com Message-ID: <9eaaru8aiacj7dq3rdgs36n9avatmklrn4@4ax.com> X-Newsreader: Forte Free Agent 1.92/32.572 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: abuse AT supernews DOT com Lines: 82 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Yet another weird problem with DJGPP. I'm trying to get a program that uses streams to compile. I have the includes set according to ANSI standards, and the compiler finds them without any trouble (no compile-time warnings about missing libraries or anything). Then it gets to my first use of cout, and it announces that "the identifier cout has not been declared." All the other functions, including several libc functions, are also marked undeclared. What did I do wrong? Compile log:: Reading specs from c:/djgpp/lib/gcc-lib/djgpp/3.2/specs Configured with: /devel/gcc32/gnu/gcc-3.2/configure i586-pc-msdosdjgpp --prefix= /dev/env/DJDIR --disable-nls Thread model: single gcc version 3.2 c:/djgpp/lib/gcc-lib/djgpp/3.2/cc1plus.exe -v -D__GNUC__=3 -D__GNUC_MINOR__=2 - D__GNUC_PATCHLEVEL__=0 -D__GXX_ABI_VERSION=102 -D__MSDOS__ -D__GO32__ -D__DJGPP_ _=2 -D__unix__ -D__MSDOS__ -D__GO32__ -D__DJGPP__=2 -D__unix__ -Asystem=msdos -A system=unix -D__NO_INLINE__ -D__STDC_HOSTED__=1 -Acpu=i386 -Amachine=i386 -Di386 -D__i386 -D__i386__ -D__tune_i586__ -D__tune_pentium__ -DMSDOS -DGO32 -DDJGPP=2 -Dunix -remap -imacros c:/djgpp/lib/gcc-lib/djgpp/3.2/djgpp.ver interskn.cpp -D __GNUG__=3 -D__DEPRECATED -D__EXCEPTIONS -quiet -dumpbase interskn.cpp -version -o c:/djgpp/tmp/cc4F7PUV.s GNU CPP version 3.2 (cpplib) (80386, BSD syntax) GNU C++ version 3.2 (djgpp) compiled by GNU C version 3.2. ignoring nonexistent directory "c:/djgpp/djgpp/include" #include "..." search starts here: #include <...> search starts here: c:/djgpp/lang/cxx/3.2 c:/djgpp/lang/cxx/3.2/djgpp c:/djgpp/lang/cxx/3.2/backward c:/djgpp/lib/gcc-lib/djgpp/3.2/include c:/djgpp/include End of search list. interskn.cpp: In function `int main()': interskn.cpp:13: `ifstream' undeclared (first use this function) interskn.cpp:13: (Each undeclared identifier is reported only once for each function it appears in.) interskn.cpp:13: parse error before `(' token interskn.cpp:15: `ofstream' undeclared (first use this function) interskn.cpp:19: `cout' undeclared (first use this function) interskn.cpp:20: `OutputFile' undeclared (first use this function) interskn.cpp:22: `InputFile1' undeclared (first use this function) interskn.cpp:25: `InputFile2' undeclared (first use this function) interskn.cpp:29: `strtod' undeclared (first use this function) interskn.cpp:34: `atof' undeclared (first use this function) DJGPP programs/utils installed: unzip32.exe copying.dj djdev203.zip faq230b.zip readme.1st rhid149b.zip bnu213b.zip gcc32b.zip gpp32b.zip mak3791b.zip txi42b.zip ntlfn08b.zip bnu213d.zip gcc31d.zip gpp2952d.zip mak3791d.zip txi40d.zip