|
-
Aug 18th, 2004, 11:11 AM
#1
Thread Starter
Frenzied Member
A smart way to include libs...
Hi
I am learning Direct3D, and I need to compile alot of samples along the way. But every time, I have to browse my hdd to include d3dx9.lib, d3d9.lib and winmm.lib. I once had a header file that could include them just by adding that header to the project....anyone know how to do it?
-
Aug 18th, 2004, 04:58 PM
#2
The libs should be in the compiler's lib lookup path (set it via the VC++ Options, not the Project Options). Then you can simply write their names in the "Additional Libraries" part of the Linker Options in the Project Options.
For the header method, you still need the correct path, and then you have a header full of stuff like
#pragma comment(lib, "libname.lib")
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Aug 19th, 2004, 12:26 AM
#3
Thread Starter
Frenzied Member
Yes, it was that code I once had 
As far as the Additional Libraries, I cant find them in the compiler options....i am using VS.NET Pro.
-
Aug 19th, 2004, 01:51 AM
#4
Thread Starter
Frenzied Member
I found the Additional Lib path, but now my projects won't compile
-
Aug 19th, 2004, 03:56 AM
#5
Tools->Options->Projects->VC++ Directories->Library Files
is the library search path.
Project Options->Linker->Input
is the additional library list.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
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
|