Including Direct X .lib in workspace manually
Hi, this may sound like a dumb question, but I am working with the Tricks of the Windows Game Programming Gurus book and it says I need to include the DirectX. lib manually. How the heck do I do that? Do I just add it into the compiler (VC++6) or do I add it with an #include tag?
Thanks so much!
Depends on the IDE you''re using
I use Visual Studio 6, and the settings are the same for 5.
Go to Project -> Settings, to the Link tab.
There are a list of .lib files here, you can add your .lib files in this textbox.
Make sure you set up your Release and Debug builds the same, otherwise you''ll get the same linker errors if you change the code build!
I stopped doing this recently, and started using something a little more "black-box".
At the top of any source (or header, I believe), you can type the following:
I believe the #pragma preprocessor directive is dependent on the compiler that you use, but this one definitely allows you to add the "libraryname.lib" to your project, hassle-free. I prefer this method, though I am sure there is a problem with it somewhere.
Good luck!
MatrixCubed
http://MatrixCubed.cjb.net
I use Visual Studio 6, and the settings are the same for 5.
Go to Project -> Settings, to the Link tab.
There are a list of .lib files here, you can add your .lib files in this textbox.
Make sure you set up your Release and Debug builds the same, otherwise you''ll get the same linker errors if you change the code build!
I stopped doing this recently, and started using something a little more "black-box".
At the top of any source (or header, I believe), you can type the following:
#pragma comment(lib, "libraryname.lib")
I believe the #pragma preprocessor directive is dependent on the compiler that you use, but this one definitely allows you to add the "libraryname.lib" to your project, hassle-free. I prefer this method, though I am sure there is a problem with it somewhere.
Good luck!
MatrixCubed
http://MatrixCubed.cjb.net
[ Odyssey Project ]
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement