cc1plus.exe: error: "-Wno-attributes"

CodeLite installation/troubleshooting forum
rekisum
CodeLite Enthusiast
Posts: 27
Joined: Fri Apr 24, 2009 6:49 pm
Contact:

cc1plus.exe: error: "-Wno-attributes"

Post 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.
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: cc1plus.exe: error: "-Wno-attributes"

Post 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
Make sure you have read the HOW TO POST thread
rekisum
CodeLite Enthusiast
Posts: 27
Joined: Fri Apr 24, 2009 6:49 pm
Contact:

Re: cc1plus.exe: error: "-Wno-attributes"

Post 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?
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: cc1plus.exe: error: "-Wno-attributes"

Post by eranif »

Set:

WXCFG = gcc_dll\mswud

(no need for full path)
Eran
Make sure you have read the HOW TO POST thread
rekisum
CodeLite Enthusiast
Posts: 27
Joined: Fri Apr 24, 2009 6:49 pm
Contact:

Re: cc1plus.exe: error: "-Wno-attributes"

Post 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!
Post Reply