Jump to content

  • Log In with Google      Sign In   
  • Create Account

We need your feedback on a survey! Each completed response supports our community and gives you a chance to win a $25 Amazon gift card!


Visual Studio 2010 include path priority issue


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 Ripiz   Members   -  Reputation: 529

Like
0Likes
Like

Posted 20 March 2012 - 07:21 AM

Hello,

I am using Visual Studio 2010 C++ Express and having a little problem with include paths.
I am using Assimp library and included it's include directory to project's additional include directories (Properties > C/C++ > General > Additional Include Directories).
That allows me to include Assimp without specifying any paths (#include <assimp.hpp>), however Assimp contains file called assert.h, which's filename matches standard assert.h, therefore when I want to include standard assert.h (#include <assert.h>) it includes Assimp's one and I get a lot of errors.
How to resolve this issue, to include both assert.h without issues?

Thank you in advance.

Sponsor:

#2 Brother Bob   Moderators   -  Reputation: 8632

Like
1Likes
Like

Posted 20 March 2012 - 07:41 AM

As given in the installation instructions, the include path should be set to assimp/include, and as given in the sample files, you include the files as #include <assimp/whatever.h>. Note that the include path has an additional subdirectory named assimp which shall not be included in the include-path, but has to be included in the #include statement. There is no collision, since the Assimp headers are in their own subdirectory.

#3 Ripiz   Members   -  Reputation: 529

Like
0Likes
Like

Posted 20 March 2012 - 08:16 AM

Thank you. That solved the issue, however I had hopes there's a way without paths :)
Also I just noticed new Assimp version has very different includes.

Thank you again.




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