Hello everyone. I have a build error with my code blocks, the build log is
*********************************************************************************
-------------- Build: Debug in Demo ---------------
g++ -Wall -g -c /home/li/CBProjects/571/DemoApp.cpp -o obj/Debug/DemoApp.o
In file included from /home/li/CBProjects/571/DemoApp.cpp:10:0:
/home/li/CBProjects/571/DemoApp.h:13:20: fatal error: wx/app.h: No such file or directory
compilation terminated.
Process terminated with status 1 (0 minutes, 0 seconds)
1 errors, 0 warnings
*********************************************************************************
It seems that the compiler cannot find wx/app.h . The build option
`wx-config --version=2.8 --static=no --unicode=yes --debug=yes --cflags`
failed to expand. But in a terminal, the option expands successfully.
li@li-P35-DS3L:~/CBProjects/571$ wx-config --version=2.8 --static=no --unicode=yes --debug=yes --cflags
-I/usr/local/lib/wx/include/gtk2-unicode-debug-2.8 -I/usr/local/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXDEBUG__ -D__WXGTK__ -pthread
By the way, when I changed the build option to
`wx-config --version=2.8 --static=no --unicode=yes --cflags`
restarted CB, this error disappears (although other errors appear), but the build log shows
**************************************************************************
-------------- Build: Debug in Demo ---------------
g++ -Wall -I/usr/lib/i386-linux-gnu/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread -c /home/li/CBProjects/571/DemoApp.cpp -o obj/Debug/DemoApp.o
g++ -Wall -I/usr/lib/i386-linux-gnu/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread -c /home/li/CBProjects/571/DemoMain.cpp -o obj/Debug/DemoMain.o
........................
**************************************************************************
when I expand
wx-config --version=2.8 --static=no --unicode=yes --cflags
in a terminal, it gives another version of wx
li@li-P35-DS3L:~/CBProjects/571$ wx-config --version=2.8 --static=no --unicode=yes --cflags
-I/usr/local/lib/wx/include/gtk2-unicode-debug-2.8 -I/usr/local/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXDEBUG__ -D__WXGTK__ -pthread
Can this problem be solved? Thanks a lot!!!!!!