Jump to content

  • Log In with Google      Sign In   
  • Create Account

Including DirectX libraries


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
5 replies to this topic

#1   Members   -  Reputation: 391

Like
0Likes
Like

Posted 30 May 2014 - 10:10 AM

Hello!

 

Well, as the title states, can somebody please help me to include the directx libraries into a win32 application please?

 

I can´t get it to work, I have been trying for quite some time now but I am still unsuccessful with my attempts.

 

I have Visual Studio 2013 Ultimate so I guess I don´t need to install anything extra like SDKs or something like that, right?

 

Regards!



#2   Members   -  Reputation: 4273

Like
4Likes
Like

Posted 30 May 2014 - 10:59 AM

With Visual Studio 2013 the DirectX SDK is included in the Windows SDK: you inly need to include the proper headers and link the proper libraries (like d3d11.lib and d3dcompiler.lib) in the projects proprieties (Configuration Proprieties -> Linker->Input->Additional Dependencies if you are making an exe or a dll, Configuration Proprieties -> Librarian->General->Additional Dependencies if you are making a static library). Remember that the project proprieties are individual for each project configuration and platform.


"Recursion is the first step towards madness." - "Skeggǫld, Skálmǫld, Skildir ro Klofnir!"
Direct3D 12 quick reference: https://github.com/alessiot89/D3D12QuickRef/

#3   Crossbones+   -  Reputation: 12104

Like
2Likes
Like

Posted 30 May 2014 - 11:54 AM

Linking to the DirectX headers and libraries is no different to linking to any other with VS 2013, for example the Windows headers and libraries.  Can you elaborate a little on what you've tried and what specific problems you had?


It appears that the gentleman thought C++ was extremely difficult and he was overjoyed that the machine was absorbing it; he understood that good C++ is difficult but the best C++ is well-nigh unintelligible.


#4   Members   -  Reputation: 421

Like
2Likes
Like

Posted 30 May 2014 - 12:48 PM

Use #pragma comment(lib,"lib_name")? Another way is to add the libraries in the linker options.



#5   Members   -  Reputation: 1478

Like
1Likes
Like

Posted 31 May 2014 - 01:46 AM

Hi!

 

XAudio 2.8 is a module available only on Windows 8 and newer.

Lininkg against it will exclude Windows Vista and Windows 7.



#6   Members   -  Reputation: 391

Like
0Likes
Like

Posted 31 May 2014 - 04:09 AM

Thank you for the answers guys, they helped to clarify a few things.






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.




PARTNERS