News:

Download Pelles C here: http://www.smorgasbordet.com/pellesc/

Main Menu

Include a .lib

Started by pOlO, March 04, 2005, 08:24:38 PM

Previous topic - Next topic

pOlO

Hi !
I've got a question : is it possible to include a .lib file not created with pellesc in a .lib file that i would create with pPellesc ?
Thx !
Gaetan

Anonymous

If your library has the type of MS COFF format, you can use it with Pelles C

pOlO

yes, but how ? i don't find out how to include it in my project :(

Anonymous

Quote from: "pOlO"yes, but how ? i don't find out how to include it in my project :(

If you look on your project settings in the IDE you will find a tab for the linker, just add it to the list of libraries there and add the header to your source code files.

pOlO

unfortunately, i wanna do a .lib file which will include another .lib file, and when selecting .lib file in the project creator, when i go to project settings, i don't have a linker tab :(

Pelle

The following should work:

1) click on the "Target files" button in the project window.
2) right-click on yourname.lib and select "Properties" from the context menu. For a Win32 Lib project, you should see the following command: $(AR) $(ARFLAGS) -out:"$@" $**.
3) add the extra library after this command - something like this: $(AR) $(ARFLAGS) -out:"$@" $** extra.lib
4) build your project.

Pelle
/Pelle

pOlO

It works !
Thanks a lot for your help !!
pOlO

pOlO

Pelle, do you plan to make an easier way to do this ? It would be nice if it was like in VC6, where you just have to include it in your project by a open dialog, like if you were adding a sourcecode :)
It would be amazing ! 8)

Pelle

I havn't really thought about it, since I didn't think it was a big problem. I will look at it...

Pelle
/Pelle

pOlO