Discussion Forum

Library help!

Next Thread | Thread List | Previous Thread Start a Thread | Settings

DetailsMessage
Read-Only
Author
Richard Howes
Posted
6-Mar-2006 18:04 GMT
Toolset
None
New! Library help!
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."
Read-Only
Author
erik malund
Posted
6-Mar-2006 18:42 GMT
Toolset
None
New! RE: Library help!
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

Erik
Read-Only
Author
A.W. Neil
Posted
6-Mar-2006 19:08 GMT
Toolset
None
New! BAT file code bloat?
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?! ;-)
Read-Only
Author
erik malund
Posted
6-Mar-2006 19:24 GMT
Toolset
None
New! RE: BAT file code bloat?
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
Read-Only
Author
A.W. Neil
Posted
6-Mar-2006 19:05 GMT
Toolset
None
New! RE: Library help!
"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/
Read-Only
Author
Richard Howes
Posted
6-Mar-2006 21:35 GMT
Toolset
None
New! RE: Library help!
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.
Read-Only
Author
Richard Howes
Posted
6-Mar-2006 21:36 GMT
Toolset
None
New! RE: Library help!
OH! That "Create a library"!

Next Thread | Thread List | Previous Thread Start a Thread | Settings