Mail Archives: djgpp/1995/10/12/14:08:32
I've installed DJGPP and I can compile C programs, but when I try to compile
C++ programs I get the following errors:
=============================================================================
Reading specs from w:/djgpp/lib\specs
gcc version 2.6.3
w:/djgpp/bin\cpp.exe -lang-c++ -v -undef -D__GNUC__=2 -D__GNUG__=2 -D__cplusplu
s -D__GNUC_MINOR__=6 -Dunix -Di386 -DGO32 -DMSDOS -D__unix__ -D__i386__ -D__GO32
__ -D__MSDOS__ -D__unix -D__i386 -D__GO32 -D__MSDOS test.cc w:/djgpp/tmp\cc00815
9
GNU CPP version 2.6.3 (80386, BSD syntax)
#include "..." search starts here:
#include <...> search starts here:
w:/djgpp/cplusinc
w:/djgpp/include
/usr/local/lib/g++-include
/usr/local/include
/usr/local/go32/include
/usr/local/lib/gcc-lib/go32/2.6.1/include
/usr/include
End of search list.
w:/djgpp/bin\cc1plus.exe w:/djgpp/tmp\cc008159 -quiet -dumpbase test.cc -versio
n -o w:/djgpp/tmp\cca08159
GNU C++ version 2.6.3 (80386, BSD syntax) compiled by GNU C version 2.6.3.
w:/djgpp/bin\as.exe -o w:/djgpp/tmp\ccb08159 w:/djgpp/tmp\cca08159
w:/djgpp/bin\ld.exe -o test w:/djgpp/lib\crt0.o -Lw:/djgpp/lib w:/djgpp/tmp\ccb
08159 -lgcc -lc -lgcc
test.cc(.text+0x14): undefined reference to `cout'
test.cc(.text+0x19): undefined reference to `ostream::operator<<(char const *)'
=============================================================================
Testing complier with this program
=============================================================================
#include <iostream.h>
int main()
{
cout << "hello";
return 0;
}
=============================================================================
my batch file to set up the environmental variables
=============================================================================
subst w: c:\langua~1
set TMPDIR=w:/djgpp/tmp
set GO32TMP=w:/djgpp/tmp
set GO32=driver w:/drivers/vga.grd gw 1024 gh 768
call c:\batch\addpath w:\djgpp\bin
w:\djgpp\bin\setdjgpp w:\djgpp w:/djgpp
doskey
=============================================================================
This is what I've installed
=============================================================================
[.] [..] BNU252BN.ZIP BSN122BN.ZIP DJDEV112.ZIP
[BIN] DJGPP.FAQ DJGPP.ENV [DRIVERS] README.1ST
[TMP] TXI310BN.ZIP DJEOE112.ZIP [MANIFEST] [INCLUDE]
[LIB] [SAMPLES] FAQ102.ZIP FLX247BN.ZIP [DIFFS]
[CPLUSINC] GCC263BN.ZIP GPP263.ZIP WHATSNEW.FAQ [GO32]
[LIBSRC] [DOCS] [ORIG] [SRC] [TESTS]
[ZONEINFO] GCC263DC.ZIP [CONTRIB] LGP262BN.ZIP DJ112M1.ZIP
LGP262DC.ZIP DJ112M2.ZIP CBGRX103.ZIP DJ112M3.ZIP GRX103M1.DOC
DJ112M4.ZIP DJDOC112.ZIP GRX103M1.ZIP README.DJ
=============================================================================
I've left the DJGPP.ENV file default.
I'm running DJGPP under Windows '95 with a P90 and 16 megs of ram. Thanks
for the help.
=========================================+===================================
=========================================+====================================
-----------------------------------------+------------------------------------
http://www.winterlan.com/alex |
=========================================+====================================
- Raw text -