Menu

#7 Inconsistent naming of static libraries for gcc

open
nobody
None
5
2003-03-21
2003-03-21
Mirko Raner
No

Hi all,

I am currently in the process of converting a complex
multi-platform, multi-language (C and Java) project
from Make/NMAKE to Ant.
The build uses a number of archives/static libraries.
When I specify a name, like, for example, "utility" in
the outfile attribute of the cc task, I get a file
"utility.a". So far, so good.
When I use a library by specifying the same name in the
libs attribute of the libset element, it gets passed
with the -l flag, which will cause gcc to look for
"libutility.a" instead of "utility.a".
Is this programmed in an inconsistent way or am I using
any of the attributes in the wrong way?

Working around this problem in the build.xml is easily
possible, but it gets messy because the workaround must
only be applied for platforms using gcc.
And in fact, messy workarounds like that are the reason
why we are switching to Ant.

Any help is appreciated!

Thanks for creating cpptasks, by the way! Great Job!

Mirko Raner
Software Engineer
PTSC
San Diego, CA

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.