Stopping visual studio using directx libs

Started by
2 comments, last by Jason Z 11 years, 11 months ago
I've been trying to use visual c++ 2010 but whenever i try to compile a program, even a simple hello world program, it keeps on coming up with this
1>LINK : fatal error LNK1104: cannot open file 'D3DX10.lib'
1> The command exited with code 1104.
1>Done executing task "Link" -- FAILED.
1>Done building target "Link" in project "Hello world.vcxproj" -- FAILED.

Anything i can do to stop it? I even re-installed visual c++ but its still coming up with the same errors
Advertisement
Do you have the DirectX SDK installed? If so, take a look at the property pages of some of the sample programs. They will show you how to set up the options for getting a D3D application to compile and run. Specifically, you should be looking at the "VC++ Directories" properties, and set the include, executable, and library folders like they are in the sample programs. That should get you going!

Do you have the DirectX SDK installed? If so, take a look at the property pages of some of the sample programs. They will show you how to set up the options for getting a D3D application to compile and run. Specifically, you should be looking at the "VC++ Directories" properties, and set the include, executable, and library folders like they are in the sample programs. That should get you going!

Okay, i got the SDK installed, but i cant find the "VC++ Directories". What are they? And, this is probably going to sound like a noobish question, but how do i compile just a normal program? Like I said before, i cant even get a simple hello world program to work
You can get to the properties diaglog box by right clicking on the project from within the solution explorer. When you open it up, take some time and look around at the various options and properties - there are tons of them. Eventually you will become much more familiar with these things, but for now you can just attack the VC++ Directories settings.

Please note that this assumes that you have a project created - have you followed a tutorial to get your hello world program started up?

This topic is closed to new replies.

Advertisement