Hello. I'm trying to build a simple link lib (like simplelib.a) from a few sources but since I am inexperienced doing so I cannot figure out what flags or switches I need to add to the compiler or linker. I tried to download some sources for link libs but the Makefile gives no clue really and I tried things like -fPIC I noticed to no avail. But I am just stabbing in the dark! :-) For those imterested I'm trying to compile ToLUA++ needed by Stratagus. It uses YABS (Yet Another Build System), this time Scons. We have Python but I can't see a Scons for OS4. In anycase I downloaded it to test but it just gave me errors. Such as: AttributeError: 'FS' object has no attribute '_cwd': However, the instructions say, that building it just requires a few sources. Well this is fine but I've no idea how to build it all together! There is a binary that fails due to missing functions. I assume due to missing a link lib. And the link lib fails to build because it is looking for a main! I'm sure I have built this type of thing before but now I can't for the life of me remember how to. And I bet it's damn simple. Also it would be good if we had a basic guide for this. Okay then where is this guide I failed to find? ;-)
Fri, 2013-03-22 16:03#1
How to build a simple link lib?