Page 1 of 1
cc1plus.exe: error: "-Wno-attributes"
Posted: Tue Oct 27, 2009 12:02 pm
by rekisum
Hi,
I tried to build a wxWidgets programm using the wizard for "wxWidgets + wxFB frame".
Building with mingw32-make now gives me:
cc1plus.exe: error: unrecognized command line option "-Wno-attributes"
I really don't know what goes wrong here.
There is no "-Wno-attributes" set in the makefile.
Maybe the wron cc1plus gets called, I also have cygwin installed
but I don't know how to check it.
Re: cc1plus.exe: error: "-Wno-attributes"
Posted: Tue Oct 27, 2009 12:26 pm
by eranif
codelite runs 'wx-config --cflags' to get the proper gcc flags - so you might not see it in the makefile. But you will see them in the 'Build' tab as the command is evaluated 'on-the-fly'
If you have another gcc installed, make sure that the correct one is called (MinGW) codelite does not support Cygwin
Eran
Re: cc1plus.exe: error: "-Wno-attributes"
Posted: Tue Oct 27, 2009 1:28 pm
by rekisum
Hmm, I'm sure I already posted a reply ???
Or did I confuse save and submit again?
Anyway,
I reinstalled everything and got further.
I think it was the wx-config programm. I forgot to setup WXCFG and WXWIN.
Although I done it like in your "The easy way" there goes something wrong:
Code: Select all
----------Build Started--------
"C:/MinGW-3.4.5/bin/mingw32-make.exe" -j 2 -f "wxtest_wsp.mk"
----------Building project:[ lcdtest - Debug ]----------
Please use the --wxcfg flag (as in wx-config --wxcfg=gcc_dll\mswud)
or set the environment variable WXCFG (as in WXCFG=gcc_dll\mswud)
to specify which configuration exactly you want to use.
gcc -c "D:/Dateien/CodeLite/wxtest/gui.cpp" -g wx-config Error: No valid setup.h of wxWidgets has been found at location: d:\wxWidgets-2.8.10\lib\d:\wxWidgets-2.8.10\lib\gcc_dll\mswud\wx\setup.h -D__WX__ -o ./Debug/gui.o "-I."
Please use the --wxcfg flag (as in wx-config --wxcfg=gcc_dll\mswud)
I set
WXCFG = d:\wxWidgets-2.8.10\lib\gcc_dll\mswud
WXWIN = d:\wxWidgets-2.8.10
Isn't that correct?
Re: cc1plus.exe: error: "-Wno-attributes"
Posted: Tue Oct 27, 2009 1:50 pm
by eranif
Set:
WXCFG = gcc_dll\mswud
(no need for full path)
Eran
Re: cc1plus.exe: error: "-Wno-attributes"
Posted: Tue Oct 27, 2009 2:10 pm
by rekisum
Ok thank you, should have read more carefully.
I had to add libstdc++ manually to the project linker tab but now it seems to run.
Thanks!