Skip to content
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

Fixed building failure with Visual Studio 2015 #9

Open
johnnychien85 opened this issue Aug 23, 2017 · 0 comments
Open

Fixed building failure with Visual Studio 2015 #9

johnnychien85 opened this issue Aug 23, 2017 · 0 comments

Comments

@johnnychien85
Copy link

johnnychien85 commented Aug 23, 2017

First compiler error found here:
cpu_x86.h(42): error C2556: '__int64 fbow::cpu_x86::xgetbv(unsigned int)': overloaded function differs only by return type from 'uint64_t fbow::cpu_x86::xgetbv(unsigned int)'

I checked the definition in line 36 of the same header:
static inline uint64_t xgetbv(unsigned int x);
and resolved this issue by changing the return type from uint64_t to uint64_t.

The second error is:
cpu_x86.h(71): error C2653: 'cpu_x86': is not a class or namespace name
which is due to the } in line 61 that prematurely closes namespace fbow{.

The third error encountered:
src\fbow.cpp(150): error C3861: 'aligned_alloc': identifier not found
is fixed by using _aligned_malloc instead of aligned_alloc. I added
#ifdef WIN32
#define aligned_alloc _aligned_malloc
#endif
to the header fbow.h to get rid of that one.

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

1 participant