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
Stopping visual studio using directx libs
Started by patric, May 02 2012 08:00 PM
3 replies to this topic
Sponsor:
#2 GDNet+ - Reputation: 2601
Posted 02 May 2012 - 08:27 PM
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!
Jason Zink :: DirectX MVP
Check out our (now available) D3D11 book: Practical Rendering and Computation with Direct3D 11
Check out my Direct3D 11 engine on CodePlex: Hieroglyph 3
Check out our free online D3D10 book: Programming Vertex, Geometry, and Pixel Shaders
Lunar Rift :: Dual-Paraboloid Mapping Article :: Parallax Occlusion Mapping Article :: Fast Silhouettes Article
Check out our (now available) D3D11 book: Practical Rendering and Computation with Direct3D 11
Check out my Direct3D 11 engine on CodePlex: Hieroglyph 3
Check out our free online D3D10 book: Programming Vertex, Geometry, and Pixel Shaders
Lunar Rift :: Dual-Paraboloid Mapping Article :: Parallax Occlusion Mapping Article :: Fast Silhouettes Article
#3 Members - Reputation: 101
Posted 03 May 2012 - 02:25 AM
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 workDo 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!
#4 GDNet+ - Reputation: 2601
Posted 03 May 2012 - 03:37 AM
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?
Please note that this assumes that you have a project created - have you followed a tutorial to get your hello world program started up?
Jason Zink :: DirectX MVP
Check out our (now available) D3D11 book: Practical Rendering and Computation with Direct3D 11
Check out my Direct3D 11 engine on CodePlex: Hieroglyph 3
Check out our free online D3D10 book: Programming Vertex, Geometry, and Pixel Shaders
Lunar Rift :: Dual-Paraboloid Mapping Article :: Parallax Occlusion Mapping Article :: Fast Silhouettes Article
Check out our (now available) D3D11 book: Practical Rendering and Computation with Direct3D 11
Check out my Direct3D 11 engine on CodePlex: Hieroglyph 3
Check out our free online D3D10 book: Programming Vertex, Geometry, and Pixel Shaders
Lunar Rift :: Dual-Paraboloid Mapping Article :: Parallax Occlusion Mapping Article :: Fast Silhouettes Article






