Skip to content

VS2008 Compilation Issue: Cannot open include file: 'immintrin.h' #9

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
russellwinstead opened this issue Jan 27, 2015 · 4 comments
Closed

Comments

@russellwinstead
Copy link

I was looking at making simple python wrappers for the zstd library, and I ran into the following issue when compling on Windows using VS2005:

lib\zstd.c(69) :fatal error C1083: Cannot open include file: 'immintrin.h': No such file or directory

It appears to come from this line.

@Cyan4973
Copy link
Contributor

Yes, indeed.
immintrin.h is about AXV2 extension.
So it's probably not available on VS2005.

The manual solution is to comment this line : the associated code will be removed from compilation.

What I'm lacking currently is a way to achieve this conditional #include automatically.

Maybe just excluding VS2005 would be a good enough start ?

@Cyan4973
Copy link
Contributor

There is a tentative fix for your configuration within the "dev" branch of zstd :
https://github.com/Cyan4973/zstd/tree/dev

For your testings

@russellwinstead
Copy link
Author

Sorry, I said 2005 but I meant 2008. After changing _MSC_VER<=1400 to _MSC_VER<=1500 everything turned out ok.

@russellwinstead russellwinstead changed the title VS2005 Compilation Issue: Cannot open include file: 'immintrin.h' VS2008 Compilation Issue: Cannot open include file: 'immintrin.h' Jan 28, 2015
@Cyan4973
Copy link
Contributor

OK, "dev" branch updated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants