Jump to content
  • Advertisement
Sign in to follow this  
Daishim

Visual Studio and Environment Variables

This topic is 4879 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I haven't played much with using external environment variables as variables within the VC++ 6 IDE. The problem I'm running into is that I'm trying to fragment together a busted SDK for an application that is distributed with a piece of hardware. There is almost no documentation on it and very little relevant commenting in the code. The additional include paths and various other command line options for compiling contain "$(dxsdk)" environment variable. Atleast, that's what I'm assuming it is from the compile error that is generated when I try to compile the application.
--------------------Configuration: DemoApp - Win32 Debug--------------------
Compiling...
StdAfx.cpp

DemoApp.exe - 1 error(s), 0 warning(s)
The following environment variables were not found
$(dxsdk)
Is anyone familiar with these features of Visual Studio? I tried adding the variable to the environment variables of the machine, but that didn't seem to take. I tried replacing all the variables with absolute paths, but that seems to be causing some other issues. If anyone can help me out with this, I'd really appreciate it.

Share this post


Link to post
Share on other sites
Advertisement
In your header paths, get rid of the variable and just give it the full path to the DirectX SDK. If you don't have it, you can get it here. If you don't, that'd explain why you're have problems. Also, if you don't have the SDK, make sure you're using the same SDK version as the application. (Assuming the application isn't yours, of course)
Quote:
Original post by Daishi
I tried replacing all the variables with absolute paths, but that seems to be causing some other issues.

Please post the problems you're getting while doing this. I believe that should give you what you want.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!