User forums > Using Code::Blocks
linux and pch
Jenna:
The file "/usr/include/wx-2.8/wx/wxprec.h" definitely exists?
Can you post the full command-line from the build log?
You might have to turn full command line logging on in "Settings -> Compiler and debugger ... -> Global compiler settings -> Other settings -> Compiler logging".
"Other setings" is the rightmost tab in "Global compiler settings".
frithjofh:
hi everybody,
i have to apologize: aparently the problem was not the pch function, but the checkbox advanced options in the scripted wizard. i'm working under suse x86_64 on an amd 64 x2 4200 with the revision 4716. i made a test suite of the posible combinations and the variant with the pch enabled definitivly works same as with pch disabled... :oops: :oops: :oops: really ashamed. i opened a project from my windows box to try how it might be working on linux only and it must have happend somewhere around then, just slipped my mind...
still strange: it seems that this advanced options checkbox does only harm on linux even if i don't choose any suboption of that part of the wizzard (there are: use shared library and use unicode build if i remember ...). the project then just does not compile. the only differences in the projects build options are that instead of having the sole `wx-config --cflags` and `wx-config --libs` under its correct place in the respective tabs of the project, they are moved to the build targets and somewhat extended: `wx-config --version=2.8 --static=yes --unicode=yes --debug=yes --cflags` and `wx-config --version=2.8 --static=yes --unicode=yes --debug=yes --libs` in the case of debug target and build target respectively.
so, sorry again for all the panic ... and: whats wrong with that advanced options in the wizzard under linux ????
regards
nausea
Jenna:
Have you run the second "wx-config "-line on console ?
I think you don't have a statically linked debug versin of wxWidgets and then the appropriate directory to include is not on disk.
Here is what happened when I run it in a console ( I have the debug-version installed, but to get a statically linked version I would have to compile it myself, but statically linked wx-Widgets is quite large):
--- Code: ---jens@debian-inspiron:~$ wx-config --version=2.8 --static=yes --unicode=yes --debug=yes --cflags
Warning: No config found to match: /usr/bin/wx-config --version=2.8 --static=yes --unicode=yes --debug=yes --cflags
in /usr/lib/wx/config
If you require this configuration, please install the desired
library build. If this is part of an automated configuration
test and no other errors occur, you may safely ignore it.
You may use wx-config --list to see all configs available in
the default prefix.
--- End code ---
Biplab:
As Jens have posted the solution, I'm not repeating it.
Unfortunately wx wizard doesn't check for missing configuration as it does on Windows. There are some reasons for not doing so. That was the reason of not checking the Advanced option by default in the wizard. When you are using the Advanced option on Linux or Mac, you must make sure that the configuration you want to use exists on your system. :)
Navigation
[0] Message Index
[*] Previous page
Go to full version