Jump to content
  • Advertisement
Sign in to follow this  
nuclear123

Using installed .lib/.h files?

This topic is 2544 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've recently installed Microsoft's Detours Express 3.0 and it installed the source code in the following directory of mine

C:\Program Files (x86)\Microsoft Research\Detours Express 3.0\src[/quote]


What is the proper way to allow me to use

[color=#181818][font=monospace]

#include "detours.h"[/font]
and
[color=#181818][font=monospace]

#pragma comment (lib,"detours.lib");[/font]

Do i simply just move the files into the 2 folders respectively?



[color=#000000][font=verdana, geneva, lucida,]C:/Program files (86)/Microsoft visual studio 10.0/ vc/include[/font]
[color=#000000][font=verdana, geneva, lucida,]C:/Program files (86)/Microsoft visual studio 10.0/ vc/lib[/font]
[/quote]

[color=#000000][font=verdana, geneva, lucida,]or is there a more elegant and proper way to do this for my Visual studio C++ project? thanks[/font]

Share this post


Link to post
Share on other sites
Advertisement
You can tell Visual Studio to look for header files and libraries in other locations by going to "Properties" under the Project menu, then opening "Configuration Properties". There should be an item labelled "VC++ Directories", and you want to add the directory containing the header files to "Include Directories" and the directory containing the library files to "Library Directories".

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!