gtk+ compiling error by include iostream

Post questions regarding programming in C/C++ in Linux/Unix.

Moderators: Darobat, RecursiveS, Dante Shamest, Bugdude, Wizard

gtk+ compiling error by include iostream

Postby sireagle » Mon Jul 09, 2012 2:28 am

hi
i wrote program that uses gtk and gstreamer
when i try to compile it and it has header iostream i see this error:
/tmp/ccWyxYzY.o: In function `__static_initialization_and_destruction_0(int, int)':
test.cpp:(.text+0x8ec): undefined reference to `std::ios_base::Init::Init()'
test.cpp:(.text+0x8f1): undefined reference to `std::ios_base::Init::~Init()'
collect2: ld returned 1 exit status

when i remove iostream its ok.
whats my problem?

my command to compile it is:
gcc test.cpp -o program `pkg-config --cflags --libs gstreamer-interfaces-0.10 gtk+-3.0 gstreamer-0.10` -fpermissive
sireagle
 
Posts: 1
Joined: Mon Jul 09, 2012 2:24 am

Return to Unix/Linux

Who is online

Users browsing this forum: No registered users and 1 guest