Adam wrote:

> Hi.
> When I include iostream I see this message:
> 
> gcc -I/usr/local/include -mwindows -DWIN32 -Wno-non-virtual-dtor -o main
> main.cpp -L/usr/local/lib /usr/local/lib/libfltk2.a -mwindows -lmsimg32
> -lole32 -luuid -lcomctl32 -lwsock32 -lsupc++
> C:/Users/Adam/AppData/Local/Temp/ccuByvXf.o:main.cpp:(.text+0xd):
> undefined reference to `std::string::size() const'
> C:/Users/Adam/AppData/Local/Temp/ccuByvXf.o:main.cpp:(.text+0x60):
> undefined reference to `std::string::operator[](unsigned int) const'
> C:/Users/Adam/AppData/Local/Temp/ccuByvXf.o:main.cpp:(.text+0x9e):
> undefined reference to `std::string::operator[](unsigned int) const'
> C:/Users/Adam/AppData/Local/Temp/ccuByvXf.o:main.cpp:(.text+0xcc):
> undefined reference to `std::string::operator[](unsigned int) const'
> C:/Users/Adam/AppData/Local/Temp/ccuByvXf.o:main.cpp:(.text+0x1969):
> undefined reference to `std::ios_base::Init::Init()'
> C:/Users/Adam/AppData/Local/Temp/ccuByvXf.o:main.cpp:(.text+0x1984):
> undefined reference to `std::ios_base::Init::~Init()' collect2: ld
> returned 1 exit status
> 
> Why I get this message?

I never saw such an error because my very first compiler was gcc-3.4 :)  
But this
  http://www.pixelbeat.org/programming/supc++/supc++.html
seems to indicate you should use -lstdc++ instead of -lsupc++ if you want to
use iostreams.

Best,
 -- Maik
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to