Mail Archives: djgpp/1998/04/28/23:18:20
Robert Vila wrote:
>
> I think I may have identified the problem. I don't think any C++
> programs compile.
<snip>
> any other ideas?
treading readme.1st knowing the difference between 'compiling' and
'linking' would have helped.
<snip>
> c:/djgpp/tmp/ccaaaaaa1.o(.text+0x24):test.cpp: undefined reference to
> `String::String(char const *)'
> c:/djgpp/tmp/ccaaaaaa1.o(.text+0x3c):test.cpp: undefined reference to
> `operator<<(ostream &, String const &)'
> c:/djgpp/tmp/ccaaaaaa1.o(.text+0x57):test.cpp: undefined reference to
> `String::~String(void)'
> c:/djgpp/tmp/ccaaaaaa1.o(.text+0x7b):test.cpp: undefined reference to
> `String::~String(void)'
short answer: use gxx to compile and link c++ programs in one go. for
the long answer, see readme.1st.
--
----------------------------------------------------------------------
A. Sinan Unur
Department of Policy Analysis and Management, College of Human Ecology,
Cornell University, Ithaca, NY 14853, USA
mailto:sinan DOT unur AT cornell DOT edu
http://www.people.cornell.edu/pages/asu1/
- Raw text -