Click here to Skip to main content
15,888,610 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
You may add the folder containing the "altivec.h" file to the VC++ directories:
On Visual Studio choose the Tools->Options menu item, then select the Projects and Solutions->VC++ Directories node, select the Include files in the Show directories for list and finally add the proper folder.

even after the above procedure i still get the same error.i also downloaded the altivec.h file but problem is not solved
Posted
Updated 21-Mar-10 3:32am
v2

1 solution

I have seen this happen when there is a second copy of any file containing the #include statement for that file, which is located in a different directory tree than the rest of the project open in the IDE at compile time (open for comparison or code reference perhaps). Closing the open edit window for the file that is not really part of the project always fixes the problem...
This will also occur if the "reference" file accidentally got added to the project...

Another cause can be that you are expecting the file to be found in the standard include paths (your description sounds as if you are), but have selected the "Ignore standard Include paths" option on the project settings (Preprocessor page).
 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900