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
Compile/Link problems with 2759
-
- CodeLite Expert
- Posts: 167
- Joined: Wed Oct 22, 2008 6:50 am
- Contact:
Compile/Link problems with 2759
Win 10/11 64-bit, MSVC 2019/2022, wxWidgets 3.2.1, CodeLite 17.0 Mint 21.2
- 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
In: 'project settings -> compiler -> compiler options'
in the '$(shell wx-config ...)' command add:
Do the same for 'project settings -> linker -> Options' add to the wx-config command
Eran
in the '$(shell wx-config ...)' command add:
Code: Select all
--static=yes
Code: Select all
--static=yes
Eran
Make sure you have read the HOW TO POST thread
-
- CodeLite Expert
- Posts: 167
- Joined: Wed Oct 22, 2008 6:50 am
- Contact:
Re: Compile/Link problems with 2759
Perfect - that does the trick - I did read the release notes, but missed it
Thank you. CL is getting better all the time
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