|
-
Oct 4th, 2002, 04:21 PM
#1
Thread Starter
Ya ya Baby!!!Me is Back
How to make .lib
I have done a search but I never saw in any post how to make a .lib. How can I do it?
And to use it I have read that I need something with #pragma, is that right?
-
Oct 4th, 2002, 06:16 PM
#2
Thread Starter
Ya ya Baby!!!Me is Back
-
Oct 4th, 2002, 06:43 PM
#3
-
Oct 4th, 2002, 07:10 PM
#4
Thread Starter
Ya ya Baby!!!Me is Back
cool
thank you
-
Oct 5th, 2002, 03:15 AM
#5
Fanatic Member
Re: How to make .lib
Originally posted by Daok
And to use it I have read that I need something with #pragma, is that right?
You can either add the lib to the project by clicking on Project > Settings > Link > "Object Library Modules" and typing it in the textbox "bla.lib"
or put this line in your main ".h" file:
PHP Code:
#pragma comment(lib, "thelibrary.lib")
just change thelibrary to whatever your lib is called, also if you want to have two different versions of your lib (debug and compile), just rename the debug one to "bla"d.lib so that they dont have the same name, and then do this:
PHP Code:
#if !defined(_DEBUG)
// release version
#pragma comment(lib, "thelibrary.lib")
#else
// debug version
#pragma comment(lib, "thelibraryd.lib")
#endif
Peace!
-
Oct 5th, 2002, 10:09 PM
#6
Thread Starter
Ya ya Baby!!!Me is Back
Very cool, tk you
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|