Mail Archives: djgpp/1996/07/23/16:46:27
Xref: | news2.mv.net comp.os.msdos.djgpp:6327
|
From: | jonah AT melab DOT uafsoe DOT alaska DOT edu (jonah lee)
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | link error in STL example code with djgpp 2.7.2
|
Date: | 23 Jul 1996 18:40:28 GMT
|
Organization: | University of Alaska Fairbanks
|
Lines: | 59
|
Message-ID: | <4t36as$6o2@news.alaska.edu>
|
NNTP-Posting-Host: | melab.uafsoe.alaska.edu
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
While compiling one of the STL example code from ObjectSpace using
djgpp 2.7.2 in DOS7 of Win95, I have an error in linking (with output shown
below):
-----------
vec1.cc(.text+0xb9f): undefined reference to `operator new(unsigned long,
void *)'
-----------
According to g++ faq, most of the examples from ObjectSpace could
be compiled with g++ 2.7.2 with the "hacked" version of STL.
Any help will be appreciated.
----------------------------------------------------------
gxx -v ..\vec1.cpp
Reading specs from e:/djgpp/lib\specs
gcc version 2.7.2
e:/djgpp/bin\cpp.exe -lang-c++ -v -undef -D__GNUC__=2
-D__GNUG__=2 -D__cplusplus -D__GNUC_MINOR__=7 -Dunix -Di386
-DGO32 -DMSDOS -DDJGPP=2 -DDJGPP_MINOR=0 -D__unix__ -D__i386__
-D__GO32__ -D__MSDOS__ -D__DJGPP__=2 -D__DJGPP_MINOR__=0
-D__unix -D__i386 -D__GO32 -D__MSDOS -D__DJGPP=2
-D__DJGPP_MINOR=0 ..\vec1.cpp e:/djgpp/tmp\ccbaaaaa
GNU CPP version 2.7.2 (80386, BSD syntax)
#include "..." search starts here:
#include <...> search starts here:
e:/djgpp/lang/cxx
e:/djgpp/include
e:/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/include
/usr/include
End of search list.
e:/djgpp/bin\cc1plus.exe e:/djgpp/tmp\ccbaaaaa -fno-strength-reduce
-fno-strength-reduce -quiet -dumpbase vec1.cc -version
-o e:/djgpp/tmp\cccaaaaa
GNU C++ version 2.7.2 (80386, BSD syntax) compiled by GNU C version 2.7.2.
e:/djgpp/bin\as.exe -o e:/djgpp/tmp\ccdaaaaa e:/djgpp/tmp\cccaaaaa
e:/djgpp/bin\ld.exe e:/djgpp/lib\crt0.o -Le:/djgpp/lib
-L/usr/local/lib e:/djgpp/tmp\ccdaaaaa -lgpp -lm -Tdjgpp.lnk
-lgcc -lc -lgcc
vec1.cc(.text+0xb9f): undefined reference to `operator new(unsigned long,
void *)'
--------------------------------------------------------------------------
--
DR JONAH LEE, DEPARTMENT OF MECHANICAL ENGINEERING
PO BOX 755900 | FAX (907) 474-6087
UNIV OF ALASKA FAIRBANKS | PHONE (907) 474-5160
FAIRBANKS AK 99775-5900 |
--
DR JONAH LEE, DEPARTMENT OF MECHANICAL ENGINEERING
PO BOX 755900 | FAX (907) 474-6087
UNIV OF ALASKA FAIRBANKS | PHONE (907) 474-5160
FAIRBANKS AK 99775-5900 |
- Raw text -