mingw linking problem

Daniel Lidström danli97@ite.mh.se
Tue Jan 9 07:34:00 GMT 2001


Hi,

I get the following error message when compiling. Why can't the linker find
write?
/Daniel

$ make
g++ -Wall -s -O2 -mno-cygwin -I/usr/local/mingw/include -c broar.cc -o
broar.o
g++ broar.o -o broar -s -O2 -mno-cygwin -I/usr/local/mingw/lib -lm
broar.o(.text+0x90f):broar.cc: undefined reference to `istream::read(char *,
int
)'
broar.o(.text+0xd19):broar.cc: undefined reference to `ostream::write(char
const
 *, int)'
collect2: ld returned 1 exit status
make: *** [broar.exe] Error 1


Daniel Lidström
danli97@ite.mh.se
www.ite.mh.se/~danli97/
62 23' 25'' N
17 15' 31'' E



--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list