Project Dependencies

General questions regarding the usage of CodeLite
Verax
CodeLite Enthusiast
Posts: 46
Joined: Sat Jan 19, 2013 10:31 am
Genuine User: Yes
IDE Question: C++
Contact:

Project Dependencies

Post by Verax »

I have a workspace with two projects: a static library, and an executable that needs to be linked to the static library. Getting this set up was pretty simple to accomplish, and the executable compiles and links as expected. I've also set the build order so any request to build the executable also attempts to build the static library.

However, consider the case where I make code changes in the static library project, but don't make any code changes in the executable project. It seems that if I attempt to build the executable's project, it builds the static library, but since no changes were made to the executable project, the executable's linker is not run. So, the output of the executable's project is not changed.

Is there some way to tell CodeLite to always run the linker for the executable's project any time there are code changes in the static library project?

----------------------------------------------
CodeLite 5.0.2613 (Official Build)
Windows 8
Sourcery CodeBench Lite Compiler
Verax
CodeLite Enthusiast
Posts: 46
Joined: Sat Jan 19, 2013 10:31 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: Project Dependencies

Post by Verax »

The reason this wasn't working for me was because I was using the --whole-archive -lmyStaticLib --no-whole-archive in the Linker "Options" text box instead of adding "myStaticLib" to the Linker "Libraries" text box. I found that as long as libraries are listed in the "Libraries" text box of the executable project's Linker settings, the dependencies work fine. User error. :oops:
Post Reply