Page 1 of 1

Compiler Options Ingored

Posted: Wed Mar 04, 2009 10:39 pm
by bossbarber
I'm trying to build an executable program on Linux using g++ with it linking a shared library statically. However it seems as though CodeLite ignores my compiler and linker options. For example, under compiler options I have tried the following combination's:

-g;-static
-g -static
g static

But when I hit build, I never see the -g or the -static or any other compiler options I try on the g++ call (for example below).

g++ -o ../../../../bin/cxtimer_d ../../../../tmp/cxtimer_d/cxtimer.o "-L/home/dbarber/Active/libraries/jaus++/trunk/1.0/lib" "-L/home/dbarber/Active/libraries/jaus++/trunk/1.0/ext/lib" "-L../../../../lib" -lcxutils_d -lpthread

What am I doing wrong, or have I not created my project correctly?

Re: Compiler Options Ingored

Posted: Wed Mar 04, 2009 10:55 pm
by jfouche
Hi

I already have this problem, and here is my error :
Can you verify that the configuration manager is well configure (that is to say that your workspace configuration is well connected to your project configuration) in project settings -> Configuration manager.
HTH

Re: Compiler Options Ingored

Posted: Sun Mar 15, 2009 6:44 am
by bossbarber
Yes I checked the workspace configuration so it matches the project settings (both are in Debug and Release). No matter what compiler flags seemed to be ignored (also I'm using version: 2674, has this been fixed in the latest release?).

Re: Compiler Options Ingored

Posted: Sun Mar 15, 2009 2:31 pm
by jfouche
Is it ok if you right click on the project, [project only] -> [Build] ?
Can you provide your <.workspace> and <.project> file (no need sources), to have a look ?
Thanks

Re: Compiler Options Ingored

Posted: Mon Apr 20, 2009 3:43 am
by bossbarber
This problem seems to have been resolved in version 2785 as I'm now seeing the -static option show up. Thanks!