Jump to content

View more

Image of the Day

#ld38 #screenshotsaturday Mimosa Fizz action gif #2 https://t.co/TUzdppvfUL
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

Using environment variables in include directive

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
2 replies to this topic

#1 eppo   Members   

4770
Like
0Likes
Like

Posted 26 November 2012 - 01:18 PM

Hi,

I'm trying to get the pre-Windows 8 XAudio2 headers from the DirectX SDK to work under VS2012.
At one point the documentation tells me to add the following line of code...

#include <%DXSDK_DIR%Include\xaudio2.h>

..., which doesn't work: cannot open include file.

I assume this is because it's not possible to literally specify environment variables this way?

#2 fastcall22   Moderators   

10701
Like
0Likes
Like

Posted 26 November 2012 - 01:34 PM

At one point the documentation tells me to add the following line of code...

#include <%DXSDK_DIR%Include\xaudio2.h>

Do you have a link to the documentation? I'd like to see some context for this code.

I assume this is because it's not possible to literally specify environment variables this way?

No, it is not possible. What I'm assuming is implied by the code is:
1. Add $(DXSDK_DIR)\Include to the include path of your Microsoft.win32.cpp.user properties sheet.
2. Add $(DXSDK_DIR)\Lib\x86 to the library path of your Microsoft.win32.cpp.user properties sheet.
3. Include <xaudio2.h>
zlib: eJzVVLsSAiEQ6/1qCwoK i7PxA/2S2zMOZljYB1TO ZG7OhUtiduH9egZQCJH9 KcJyo4Wq9t0/RXkKmjx+ cgU4FIMWHhKCU+o/Nx2R LEPgQWLtnfcErbiEl0u4 0UrMghhZewgYcptoEF42 YMj+Z1kg+bVvqxhyo17h nUf+h4b2W4bR4XO01TJ7 qFNzA7jjbxyL71Avh6Tv odnFk4hnxxAf4w6496Kd OgH7/RxC

#3 eppo   Members   

4770
Like
0Likes
Like

Posted 26 November 2012 - 01:46 PM

Here is the specific page: http://msdn.microsoft.com/en-us/library/windows/desktop/ee663275.aspx

I already have this working, but the thing is: you have to add the complete path to the header files (#include <C:/Program Files (x86)/Microsoft DirectX SDK (June 2010)/Include/xaudio2.h>), otherwise they will conflict with the newer headers from the Windows 8 SDK.




Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.