DSPRelated.com
Forums

Creating a Library

Started by ahma...@yahoo.com December 9, 2008
Hi
I want to create a library from my codes (*.c files) so I wrote them in a project of type library. Is this procedure true? Where can I find the tips and rules for creating a library?

Can a C source code, which will be the .lib, have main()function?
What should I do if I have the same .h and .lib files both in my created library and in final project (which use my created library)?
Regards
HI

The first procedure is correct.

It is not ususal process to have a main() function in the library. Usually we create library and we will also write a framework application which will have main function and inturn calls the library function.

The last statment is not clear to me. sorry.
Pradeep.

________________________________
From: "a...@yahoo.com"
To: c...
Sent: Tuesday, 9 December, 2008 9:50:38 PM
Subject: [c55x] Creating a Library
Hi
I want to create a library from my codes (*.c files) so I wrote them in a project of type library. Is this procedure true? Where can I find the tips and rules for creating a library?

Can a C source code, which will be the .lib, have main()function?
What should I do if I have the same .h and .lib files both in my created library and in final project (which use my created library)?
Regards