[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.tools.cdt] Re: Problem: archive has no table of contents

Hello there,
I'm a CDT-newbie myself, too, and I've just stumbled upon the same problem. Your solution works, but after doing some research I've found an even shorter one ;-). Instead of running ranlib afterwards to create the missing toc we can tell the gcc archiver to do it right away when it builds the library.


Open your project properties, go to 'C/C++Build>Settings' and click on the 'Tool Settings' tab. Go to the 'GCC Archiver>General' node. On the right, the inputbox shows the flags for the gcc archiver that have been set - in my case only '-r'. Add the flag '-s' and you're good to go. Nice advantage: you can apply this flag for all build-configurations at once :-)

René