Read-only archive of the All About Symbian forum (2001–2013) · About this archive

How to create .lib for Symbian 60

4 replies · 2,650 views · Started 01 April 2004

How can I create plain regular library projects (.lib) for the Symbian 60?

Is this even possible? The documentation only mention .exe and two types of
.DLLs. This is not what I need.

Thanks,
Thierry

Yes of course it's possible, to create static library use "dll" as your TARGETTYPE, put e.g. YourLibrary.dll to TARGET and define exports and DLL entry point in your main .cpp file. After build you can find at your release folder two files, YourLibrary.lib (link against this) and YourLibrary.dll which should be added to your SIS file.

I Hope that this helps.

My question was about creating a static library (LIB), not a dynamic one (DLL).

Anyways, I found out the answer on Symbian's newsgroups:

In the .mmp file of the static library:
TARGET YourLib.lib
TARGETTYPE lib
UID 0

In the .mmp file of the application that uses the library:
STATICLIBRARY YourLib.lib

see <a href="http://www3.symbian.com/faq.nsf/0/535046705AAE88AF80256B42003BB488?OpenDocument">symbian faq</a>

Thierry wrote:My question was about creating a static library (LIB), not a dynamic one (DLL).

Anyways, I found out the answer on Symbian's newsgroups:

In the .mmp file of the static library:
TARGET YourLib.lib
TARGETTYPE lib
UID 0

In the .mmp file of the application that uses the library:
STATICLIBRARY YourLib.lib


----------------------------------------------------------------------------------------------------
Hi Theory,

I am also facing the same problem. Please give me the link where u found the solution.As i am getting the error as "Could not find or load the file "ELIB.LIB" for target "WINSCW UDEB""

Thanks
Sen