Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: mr_tawan on November 25, 2005, 12:47:03 pm

Title: Project from Template - Not Compile
Post by: mr_tawan on November 25, 2005, 12:47:03 pm
I'm using C::B 1.0rc2 with Gentoo 2005.1 and GCC 3.3.6 ...

My Problem is , when I create new Project (I select 'SDL Application') and compile it, CB return error as below
Code
g++: cannot specify -o with -c or -S and multiple compilations

As I tried, the wxWindows Application is also not compile , but Console Application works fine. I suspect the script that used to generated the parameter (wx-config and sdl-config) generate some flag that is conflict to CB generated makefile.

But I'm just Linux newbie, I don't know how to solve this problem  :( .
Anyway, I think this problem is not found on Windows.
Title: Re: Project from Template - Not Compile
Post by: mandrav on November 25, 2005, 02:02:59 pm
For 1.0rc2 and earlier releases, you must use the "GNU make" build method for this to work (Settings->Compiler->Other).
In CVS it works as it should, either way.
Title: Re: Project from Template - Not Compile
Post by: mr_tawan on November 25, 2005, 07:25:19 pm
Ok, got it work right now.
Thank you very much.

I'll try to get cvs version soon.