Compile/Link problems with 2759

General questions regarding the usage of CodeLite
coder99
CodeLite Expert
Posts: 167
Joined: Wed Oct 22, 2008 6:50 am
Contact:

Compile/Link problems with 2759

Post 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 :-)

Win 10/11 64-bit, MSVC 2019/2022, wxWidgets 3.2.1, CodeLite 17.0 Mint 21.2

User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Compile/Link problems with 2759

Post 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
Make sure you have read the HOW TO POST thread
coder99
CodeLite Expert
Posts: 167
Joined: Wed Oct 22, 2008 6:50 am
Contact:

Re: Compile/Link problems with 2759

Post 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 :-)

Win 10/11 64-bit, MSVC 2019/2022, wxWidgets 3.2.1, CodeLite 17.0 Mint 21.2

Post Reply