Mail Archives: djgpp/1999/05/18/00:52:05
Hello,
2 Things:
When I compile the following program:
#include <iostream.h>
#include <iomanip.h>
#include <_String.h>
int main () {
String abc;
abc = "test";
cout << abc;
return 0;
}
I get the following results with gxx:
C:\Development\c>gxx -o test.ext test.o
test.o(.text+0x1f):test.cpp: undefined reference to `String::String(void)'
test.o(.text+0x30):test.cpp: undefined reference to `String::operator=(char
cons
t *)'
test.o(.text+0x43):test.cpp: undefined reference to `operator<<(ostream &,
Strin
g const &)'
test.o(.text+0x53):test.cpp: undefined reference to `String::~String(void)'
test.o(.text+0x7b):test.cpp: undefined reference to `String::~String(void)'
What am I doing wrong?
Furthermore, I was searching you archives, and I say a problem identical to
mine. I tried, but I couldn't find the responses to the question. Mine
would have been answered had I seen those responses.
Thanks,
Paul Hand
paulwebdev AT hotmail DOT com
_______________________________________________________________
Get Free Email and Do More On The Web. Visit http://www.msn.com
- Raw text -