This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
problems with String.h
- To: gnu-win32 at cygnus dot com
- Subject: problems with String.h
- From: DRS <drs at cs dot wisc dot edu>
- Date: Mon, 07 Apr 1997 20:51:41 -0500
- Organization: University of Wisonsin
- Reply-To: drs at cs dot wisc dot edu
Greetings,
The following works fine under GCC on Solaris (at school) but fails
under
my gnu-win32 setup at home:
//g++ -c str.cpp
//g++ -o str.exe str.o
#include <strclass.h>
#include <iostream.h>
main()
{
string str("This is a test.");
cout << str << endl;
return 0;
}
/*
str.o(.text+0x35):str.cc: undefined reference to `String::String(char co
str.o(.text+0x4b):str.cc: undefined reference to `operator<<(ostream &,
onst &)'
str.o(.text+0x66):str.cc: undefined reference to `String::~String(void)'
*/
Is this simply a configuration problem, or what? I was wondering if it
had
to do with the string.h/String.h name collision. I have no problem using
iostream.h, which looks to be in the same directory. Ideas anyone?
Thank-you in advance for your help,
DRS
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".