another problem in build system of C++ projects
Eva Brucherseifer
eva at kde.org
Tue Nov 6 10:44:56 GMT 2001
Hi,
there is another problem in the build system for C++ projects.
Let's say, you have a subdir in your project and thus a library (say libx.a),
and you use other external libs (like libyz.a) in this library libx.a.
Then you would add "-lyz" to the linker options and -lx.a would be added
automatically.
If you now compile and link, the linker gives a lot of errors, because the
symbols of libyz.a in libx.a cannot be resolved.
This can be fixed by changing the order:
-lx -lyz
instead of the current link order:
-lyz -lx
A workarround is to add also the lib of the project to the linker object.
Then libx.a appears twice, but it works:
-lx -lyz -lx
Can that be changed in the build system? Or is that a problem of the
admin-files?
Thanks,
eva
-
to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
unsubscribe »your-email-address«
More information about the KDevelop
mailing list