Library Linking Solved

Tristan Robert Martindale trmartindale at tmiconsult.co.za
Fri Oct 21 11:35:01 BST 2005


Hi

Thanks for the help and sorry about the HTML!
I have fixed the library linking problem. The solution I found was as 
follows:

In the Automake Manager pane called "Link Libraries Outside of Project": 
the full path of a static library including the file name and extension 
should be added without any preceding "-l".

To link a shared library one should add the path to LDFLAGS as follows: 
"-L/path/to/library". Then one should add the name of the library to the 
"Link Libraries Outside Project" pane as "-lnameoflibrary". This should 
not contain the lib prefix or .so extension.

Automake Manager then constructs the line in the makefile which will 
look as follows:
LDFLAGS = /path/to/static.a -L/path/to/shared -lshared

Hope this helps anyone else out there who may have experienced this problem.

Cheers
Tristan

-- 
Tristan Robert Martindale
BSc(Eng)(Aeronautical)
TMI Consultancy
Office M47, The Innovation Center
The Innovation Hub, Persequor X10
Pretoria, 0000, South Africa
email: trmartindale at tmiconsult.co.za
Work Phone: +27 (012) 844 0311
Home Phone: +27 (011) 356 0602
Cellular Phone: +27 083 264 5142 


-
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