I already tried to add --version=2.9 like this wx-config -cflags --version=2.9. Codeblocks don't accept it but it works in a console. With version=2.8, same result.
:~$ wx-config --list
Default config is gtk2-unicode-static-2.9
Default config will be used for output
Alternate matches:
gtk2-unicode-2.9
Also available in /usr/local:
gtk2-ansi-debug-2.8
gtk2-ansi-debug-2.9
gtk2-ansi-release-2.8
gtk2-ansi-release-2.9
gtk2-unicode-debug-2.9
gtk2-unicode-release-2.8
gtk2-unicode-release-2.9
in console, env gives a lot of things with noting to do with widgets.
I don't understand this
create a symlink to /usr/local/lib/wx/config/gtk2-unicode-release-static-2.9
I have no problem to link, i just can't compile with the good headers. and anyway, i usually add the libs in the buils options.
I noticed somethng else:
wx-config in console returns /usr/locale/include/.....
but in codeblocks log i have /usr/include.....
see my previous post
and in fact, if i rename /usr/include/wx-2.8 to wx2.8a codeblocks don't find any header.
And something strange too in my log.
g++ -Wall -I/usr/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread -Winvalid-pch -include wx_pch.h -DWX_PRECOMP -g -pg -g -I/usr/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread -Wunused-variable -Wno-deprecated -I/usr/local/include/wx-2.9 -I/usr/include/mysql -c /home/moi/aMule-SVN-r10490/MyAmulePrj/GUIFrame.cpp -o obj/Debug/GUIFrame.o
cc1plus: warning: ./wx_pch.h.gch/Release_wx_pch_h_gch: not used because `__OPTIMIZE__' not defined
In file included from /usr/local/include/wx-2.9/wx/platform.h:711,
from /usr/local/include/wx-2.9/wx/defs.h:26,
from /usr/local/include/wx-2.9/wx/wx.h:15,
from /home/moi/aMule-SVN-r10490/MyAmulePrj/GUIFrame.h:19,
from /home/moi/aMule-SVN-r10490/MyAmulePrj/GUIFrame.cpp:19:
/usr/local/include/wx-2.9/wx/chkconf.h:94:9: error: #error "wxUSE_ANY must be defined, please read comment near the top of this file."
/usr/local/include/wx-2.9/wx/chkconf.h:102:9: error: #error "wxUSE_CONSOLE_EVENTLOOP must be defined, please read comment near the top of this file."
../.. and so on
As you can see, it seem that wx-config is called AFTER something else as i have include path of wx2.9 ( result of wx-config) after wx2.8.
what i made now: i made a small bath called sdcc installed in the right directory. Of course i don't have this compiler ( sdcc ).
This batch is just :
echo param for icc==>
because at first i wanted to do it for icc ...
and now my log is
sdcc -Wall -I/usr/local/lib/wx/include/gtk2-unicode-static-2.9 -I/usr/local/include/wx-2.9 -D_FILE_OFFSET_BITS=64 -D__WXGTK__ -pthread -Winvalid-pch -include wx_pch.h -DWX_PRECOMP -g -I/usr/local/include/wx-2.9 -c GUIFrame.cpp -o obj/Debug/GUIFrame.o
param for icc==>
sdcc -Wall -I/usr/local/lib/wx/include/gtk2-unicode-static-2.9 -I/usr/local/include/wx-2.9 -D_FILE_OFFSET_BITS=64 -D__WXGTK__ -pthread -Winvalid-pch -include wx_pch.h -DWX_PRECOMP -g -I/usr/local/include/wx-2.9 -c MyAmulePrjApp.cpp -o obj/Debug/MyAmulePrjApp.o
param for icc==>
I don't have any wx-2.8 in the path. It seem's i have a something defined for g++, called previously to wx-config and "hidden".
Now back to g++. If i erase every wx-config or additionnal search path for global or project setting ( what a mess) , the log still show a call to wx-2.8.
i removed all the headers of my project and the precomp headers=> same thing wx-2.8 still there
As i told you, i still have in Settings->Environement>Header-fixup configuration ( see attachment ) a lot of stuff about the old versions of widgets ( 2.8, 2.6 ) and codeblocks.
I wonder if it can't have something to see with.
reg.