User forums > Help

Linking Problem now...

<< < (2/3) > >>

russose:
Hallo Thomas,

I understand but if I don't write my link libraries in BOTH places, the linker complains. If the seetings are in a XML file, I will restore it after an update to avoid writting all links again.

Thanks for your help,
Salvatore

thomas:
If you add your link libraries to the project alone, this should be enough.

If that causes a problem, then you are not doing it correctly. Seriously, it must work that way, everybody is doing it, it is the correct way to do it.

Everything that is global for every project goes into compiler settings (that might for example be your system include path), but everything that may vary among different projects (like link libraries) really should go into the project file.

Ceniza:
Maybe he's adding the libraries in the wrong order and those libraries depend some on another. Having them twice is what could be solving the problem, but just by adding them in the right order in the project options should be enough.

As a real life example, in the old days when I used Allegro, if you wanted to load a PNG you'd need to link against 4 libraries: allegro, zlib, png and loadpng. If you added them in the wrong order you'd get lots of unresolved symbols, because some of those rely on some other. There, png relies on zlib and loadpng relies on both allegro and png. That said, the right order would be: loadpng png zlib allegro (since zlib and allegro don't rely one on each other you could also swap them).

If that's your case, consider the order and try again :)

russose:
Hallo,

I totally agree with you :=) I agree that the project option is the ONLY good place. But in practice, it was not working... and after some days of fight I solved the problem with the global option.

The order of the libraries could be a solution. I already thought about this and tried a little to change the order but given I have 20-30 libraries, if there is one combinaison, it will be a good game to find it :=) I have more chances to win a loto :=)

Seriously, I will try again, maybe 3 or 4 libraries are used by everyone.... their order can be important... I will try again :=)

Thanks for your help,
Salvatore

rickg22:
From personal experience, the libraries at the top depend on the libraries at the bottom.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version