Hello
In order to generate a run time library:
- Create your project as usual.
- Open the target setting dialog (pressing ALT + F7)
- Go to the "Coldfire Target" panel
- Change Project Type to "Library" and adjust the name of the File Name edit
box.
- Close the dialog clicking on OK.
That should do it.
To add the library to your project:
- Click with the right mouse button in the project (.mcp) window
- Select "Add Files" and browse for your library file
- Select he file and click on Open. The file is added to the project.
I hope this helps.
CrasyCat
Hello
Yes you need to include a header file with declaration of object and prototype of the function from the library.
This follows the standard ANSI C programming rules. If you want to use the function strcpy from the ANSI library you have to include the files string.h first :smileyhappy:.
Library can have any extension, but I would recommend to use extension .a .
Using another extension than .a will require an extension of the File Mappings associated with the project. You need to define the new extension there and tell the IDE what it is supposed to do with the files :smileyhappy:
CrasyCat