Pelles C forum

Pelles C => General discussions => Topic started by: pOlO on March 04, 2005, 08:24:38 PM

Title: Include a .lib
Post by: pOlO on March 04, 2005, 08:24:38 PM
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
Title: Include a .lib
Post by: Anonymous on March 04, 2005, 09:50:03 PM
If your library has the type of MS COFF format, you can use it with Pelles C
Title: Include a .lib
Post by: pOlO on March 04, 2005, 10:38:36 PM
yes, but how ? i don't find out how to include it in my project :(
Title: Include a .lib
Post by: Anonymous on March 04, 2005, 10:40:01 PM
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.
Title: Include a .lib
Post by: pOlO on March 05, 2005, 12:03:52 AM
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 :(
Title: Include a .lib
Post by: Pelle on March 05, 2005, 01:20:51 AM
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
Title: Include a .lib
Post by: pOlO on March 05, 2005, 09:48:04 AM
It works !
Thanks a lot for your help !!
pOlO
Title: Include a .lib
Post by: pOlO on June 20, 2005, 08:56:21 PM
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)
Title: Include a .lib
Post by: Pelle on June 21, 2005, 08:48:00 PM
I havn't really thought about it, since I didn't think it was a big problem. I will look at it...

Pelle
Title: Include a .lib
Post by: pOlO on June 22, 2005, 09:53:50 AM
Thanks 8)