Summary: | Linker doesn't handle the references in .a libraries located in different directories properly | ||
---|---|---|---|
Product: | [Applications] kdevelop | Reporter: | Claudiu ANGHEL <claudiu.anghel> |
Component: | kdevelop 2.x (obsolete) | Assignee: | KDevelop-Devel List <kdevelop-devel> |
Status: | RESOLVED NOT A BUG | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | 2.1.3 | ||
Target Milestone: | --- | ||
Platform: | openSUSE | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | The source for the classes used for checking the bug |
Description
Claudiu ANGHEL
2003-02-02 13:13:41 UTC
Created attachment 864 [details]
The source for the classes used for checking the bug
Contains the source files used for checking the bug
This would work better if you switch the order: bugtest_LDADD = ./dirb/libdirb.a ./dira/libdira.a GCC compiling is very specific about the order of static libraries when they have dependencies on each other. I don't remember if you can switch the order easily in KDevelop 2.x, but you can in 3.0. Subject: Re: Linker doesn't handle the references in .a libraries located in different directories properly Thank you for your response, Unfortunately the LDADD line is generated by KDevelop and any modification will be overwriten every time you change the directory structure. Is very strange that if you don't link the .a archives but .o objects you have no linking problem. For the moment I'm making a dummy call in a dummy function in the main directory for forcing the linking of the contents of library. Maybe I should download kdevelop 3.0, but I'm not so confident in alpha versions. Thank you once more, Claudiu ANGHEL Caleb Tennis wrote: >------- You are receiving this mail because: ------- >You reported the bug, or are watching the reporter. > >http://bugs.kde.org/show_bug.cgi?id=53895 >caleb@aei-tech.com changed: > > What |Removed |Added >---------------------------------------------------------------------------- > Status|UNCONFIRMED |RESOLVED > Resolution| |INVALID > > > >------- Additional Comments From caleb@aei-tech.com 2003-02-09 17:27 ------- >This would work better if you switch the order: > >bugtest_LDADD = ./dirb/libdirb.a ./dira/libdira.a > >GCC compiling is very specific about the order of static libraries when they >have dependencies on each other. I don't remember if you can switch the order >easily in KDevelop 2.x, but you can in 3.0. > > > > |