Skip to main content
GameDev.net gamedev.net
🔒 Locked

adding dx libraries to vc++

Started by commander keen Mar 6, 2004 at 10:00 AM 1 replies 350+ views
Original Post
commander keen
commander keen
I have visual c++ 6.0 and directx sdk 9.0 installed on my system. i browesed around in the IDE and did not find a way to add the required dx files so i can compile my programs. any suggestion?
Commander Keen
JohnBolton
JohnBolton
I don''t have VC 6 in front of me, so I a going by memory...

In the project settings (right click on the project in the workspace window and choose "settings"), there is a "linker" tab. Somewhere on that tab is something like "additional libraries". Type in the names of the libraries there. For D3D, I include d3d9.lib d3dx9.lib and dxerr9.lib
John BoltonLocomotive Games (THQ)Current Project: Destroy All Humans (Wii). IN STORES NOW!
djsteffey
djsteffey
i prefer doing this at the top of one of my files in the project

#comment (lib, "d3d9.lib")

note that will only work for msvc but if that is the compiler/ide you use then it will work fine. i like doing it that way so that when i start a new project with those same files i dont have to go through the whole thing that the above poster wrote down.

"A soldier is a part of the 1% of the population that keeps the other 99% free" - Lt. Colonel Todd, 1/38th Infantry, Ft. Benning, GA

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.