NO

Author Topic: Include a .lib  (Read 6354 times)

pOlO

  • Guest
Include a .lib
« 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

Anonymous

  • Guest
Include a .lib
« Reply #1 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

pOlO

  • Guest
Include a .lib
« Reply #2 on: March 04, 2005, 10:38:36 PM »
yes, but how ? i don't find out how to include it in my project :(

Anonymous

  • Guest
Include a .lib
« Reply #3 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.

pOlO

  • Guest
Include a .lib
« Reply #4 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 :(

Offline Pelle

  • Administrator
  • Member
  • *****
  • Posts: 2266
    • http://www.smorgasbordet.com
Include a .lib
« Reply #5 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
/Pelle

pOlO

  • Guest
Include a .lib
« Reply #6 on: March 05, 2005, 09:48:04 AM »
It works !
Thanks a lot for your help !!
pOlO

pOlO

  • Guest
Include a .lib
« Reply #7 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)

Offline Pelle

  • Administrator
  • Member
  • *****
  • Posts: 2266
    • http://www.smorgasbordet.com
Include a .lib
« Reply #8 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
/Pelle

pOlO

  • Guest
Include a .lib
« Reply #9 on: June 22, 2005, 09:53:50 AM »
Thanks 8)