Page 1 of 1

Compile/Link problems with 2759

Posted: Wed Feb 25, 2009 4:16 am
by coder99
Up till now I have been using build 2674 . Over the past couple of days I have tried build 279, but without much luck.

Today I spent some time trying to sort out the problems - searching this forum and looking over my environment etc.

As best I can tell, the two environments are identical. But when I open an existing workspace - which I just compiled and linked successfully in 2674, with 2759, I get a whole lot of linker errors. The compile does not produce any errors. When I switch back to 2674, the linking also fails, until I do a complete rebuild, then it all compiles and links.

After comparing the output from the two builds, I see that 2759 has the additional flag -DWXUSINGDLL in the compile command line. I want to build a statically linked app, so of course, the link will fail, since I will be linking in the wrong libraries.

Where does 2759 get the extra -DWXUSINGDLL from - or better yet, where can I turn it off :-)

Re: Compile/Link problems with 2759

Posted: Wed Feb 25, 2009 12:40 pm
by eranif
In: 'project settings -> compiler -> compiler options'

in the '$(shell wx-config ...)' command add:

Code: Select all

--static=yes
Do the same for 'project settings -> linker -> Options' add

Code: Select all

--static=yes
to the wx-config command

Eran

Re: Compile/Link problems with 2759

Posted: Wed Feb 25, 2009 8:57 pm
by coder99
Perfect - that does the trick - I did read the release notes, but missed it

Thank you. CL is getting better all the time :-)