Path: chuka.playstation.co.uk!news1.scei.co.jp!scea!sumner From: sumner@austin.metrowerks.com (Joel Sumner) Newsgroups: scea.yaroze.programming.codewarrior,scee.yaroze.programming.codewarrior Subject: Re: How to make a 'library' Date: Tue, 03 Mar 1998 13:41:21 -0600 Organization: Metrowerks Lines: 51 Message-ID: References: <6da1hk$g2d13@chuka.playstation.co.uk> <34F9D518.22DF55F8@jim-donelson.com> NNTP-Posting-Host: mtwks116.metrowerks.com Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Newsreader: Yet Another NewsWatcher 2.4.0 Xref: chuka.playstation.co.uk scea.yaroze.programming.codewarrior:286 scee.yaroze.programming.codewarrior:181 You did very well ;-) In order to create a library, simply set the target to "library" rather than "application". You can include this library in any other Metrowerk project file. If you wish to create a dependency between the end application and the library project, you can drag the library project file into the application project. Then go to the "Targets" tab, open the target, and click the "bullseye" icon to create a build dependency. If you click in the "chain" column, it will add the output of the sub-project (i.e. the .lib file) to that target. -Joel In article <34F9D518.22DF55F8@jim-donelson.com>, Jim Donelson wrote: >Well, I don't claim to be a CW expert, but I just created a lib from the >survival project libs, and this is what I did: >Create a new project, picking NY C as the template. >(I assume this creates a project base that has all the right stuff set >for NY) >Under the files, add the c files using Project/Add files that make up >the lib >Under the target settings tab, pick Target /MIPS Project/ set project >type to Library >Set the file name to xxxxx.lib >Note that I couldn't find and specific mention of this procedure in the >docs (doesn't mean it's not there, just means I couldn't find it!). >Also, if I was cleaver, I think you could have added this as a >sub-project, but if your bothering to create a lib, you probably want a >separate project, as the purpose of a lib is to reuse the code. >Steve Dunn wrote: > >> Can someone point me in the right >> direction on how to correctly make a >> 'library' file using codewarrior. I >> can't seem to find any documentation on >> it. I'm assuming theres no difference >> between a C and C++ library (as far as >> implementing it). >> >> Cheers >> >> Steve -- PlayStation Development Tools Dude Metrowerks