Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / Programming / CodeWarrior / December 2003



Tip: Looking for answers? Try searching our database.

Static libraries

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Christian Caron - 17 Dec 2003 22:47 GMT
Hi everyone,

I'm trying to build a libray using mwld on a bunch of .o on the command
line.

I then try to add this static library to a project in the IDE but I
can't.
I tried with the sample project library that comes in the sample and it
works. So here is my question: what switches do I need to flip on when
compiling the static library on the command line?

Thanks,

Chris

CodeWarrior Development Studio for Mac OS v9
Dual G4, 1Gb RAM
Z. Majeed - 18 Dec 2003 01:57 GMT
mwld -lib -o libmystatic.a file1.o file2.o ...

works for me.

Of course the project must be Mach-O if you want to add a library created by
mwld. You may also want to try setting the file type and creator to MLIB and
CWIE respectively.

Zartaj

> Hi everyone,
>
[quoted text clipped - 13 lines]
> CodeWarrior Development Studio for Mac OS v9
> Dual G4, 1Gb RAM
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.