Hello. I need a little help trying to create a "library" or a "library in a project". A couple questions: How do you create a stand alone library? And with the following text from the knowledge database, how do you add a second target in uVision? "Add for the library an own target and and an own file group to your project. For example, add the target Library and file group Library."
like this
if not exist as.lib goto usliex del as.lib :usliex c:\tools\keil\c51\bin\lib51 c as.lib >..\trash\trashbin c:\tools\keil\c51\bin\lib51 a Sacode.obj to as.lib >..\trash\trashbin c:\tools\keil\c51\bin\lib51 a Sccode.obj to as.lib >..\trash\trashbin c:\tools\keil\c51\bin\lib51 a SSF881C.obj to as.lib >..\trash\trashbin c:\tools\keil\c51\bin\lib51 a SSF882C.obj to as.lib >..\trash\trashbin c:\tools\keil\c51\bin\lib51 a SSF882M.obj to as.lib >..\trash\trashbin c:\tools\keil\c51\bin\lib51 a SSFcc1C.obj to as.lib >..\trash\trashbin c:\tools\keil\c51\bin\lib51 a SSFcc1A.obj to as.lib >..\trash\trashbin c:\tools\keil\c51\bin\lib51 a SSF771A.obj to as.lib >..\trash\trashbin c:\tools\keil\c51\bin\lib51 a SSF901C.obj to as.lib >..\trash\trashbin c:\tools\keil\c51\bin\lib51 a Scrout.obj to as.lib >..\trash\trashbin c:\tools\keil\c51\bin\lib51 a Sarout.obj to as.lib >..\trash\trashbin c:\tools\keil\c51\bin\lib51 a Sfmtbs.obj to as.lib >..\trash\trashbin
"How do you create a stand alone library?" Errr... isn't that a contradiction in terms? A library does not stand alone: it needs to be linked to other stuff to create a useful program that can stand - or, rather, run - alone. Did you consider checking the 'Create a Library' box on the 'Output' tab of the Project options...? Library Manager Manuals: http://www.keil.com/support/man/docs/lib51/ http://www.keil.com/support/man/docs/libx51/
if not exist as.lib goto usliex del as.lib :usliex
if exist as.lib del as.lib
if not exist as.lib goto usliex del as.lib :usliex Or, more simply, if exist as.lib del as.lib or did you just want an excuse to use a dreaded goto?! ;-) How did you guess? :) 1) I have absolutotally no problem with goto in .bat files, very little can be done without it. 2) Without "proof" I would say that the construct is from a time when more was there. This file is a modified copy of a modified copy of a modified copy of a modified copy of ..... Erik
I was refering to this useless bit of info: http://www.keil.com/support/docs/2610.htm What "create a library" on the project tab? I'm using uVision3. Obviously I'm missing some piece of information.
OH! That "Create a library"!