| [news.eclipse.tools.cdt] Re: Very simple question: How to get CDT to link in a library? |
Copying this to the eclipse.tools.cdt group.
I have a static library project called "A" and an executable project called "ATest". I want ATest to link in the A library. I have A selected in the "Project References" page for ATest. But A is not being linked in. Do I need to manually add the A library via the GCC linker settings page? That doesn't seem right.
I tried adding the path to the A library to the GCC linker libraries list. GCC just gives the error "/usr/bin/ld: cannot find -l/home/me/workspace/A/Debug/A.a", which seems crazy because in fact the file is present and was just built by GCC a minute earlier.