Hello everybody,
I have followed instruction at
http://www.wxwidgets.org/wiki/index.php/Eclipse
to configure eclipse to compile wxWidgets library.
When eclipse compiles the program, it doesn't create the executable file, although it doesn't find any errors and everything seems to be fine.
Here is the output of eclipse when compiling:
Code:
**** Build of configuration Debug for project practice ****
make -k all
Building file: ../chapter3.cpp
Invoking: GCC C++ Compiler
g++ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread -I/usr/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"chapter3.d" -MT"chapter3.d" -o"chapter3.o" "../chapter3.cpp"
Finished building: ../chapter3.cpp
Building target: practice
Invoking: GCC C++ Linker
wx-config --libs g++ -o"practice" ./chapter3.o
-pthread ++ -opractice ./chapter3.o -lwx_gtk2u_g++-2.8 -lwx_gtk2u_-opractice-2.8 -lwx_gtk2u_./chapter3.o-2.8 -lwx_baseu-2.8
Finished building target: practice
Build complete for project practice
I compiled the same program using the following command on console and I could see the program running.
Code:
g++ chapter3.cpp `wx-config --libs` `wx-config --cxxflags` -o chapter
Has anyone had the same problem?