-
Notifications
You must be signed in to change notification settings - Fork 536
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
VS2015: "error C2011: 'timespec': 'struct' type redefinition" #13
Comments
Looks that way. Should be fixed now in commit ed3f32b, please let me know if there's still any issues. |
You're quick ;). I was currently testing fixes in my fork. I'll let you know how testing of both solutions turns out. Thanks! |
It compiles fine on:
Nice work! |
Hi @kcat, I tried to compile OpenAL Soft with MinGW32 (GCC 5.3.0) and I still have this issue...
Is it possible to get it working with MinGW32 or should I definitely need to update to MinGW64? :) |
It should be possible to get working with MinGW32, assuming the compiler can otherwise handle OpenAL Soft. I just need to not be lazy and do a proper check for that struct, rather than try to guess based on some compiler-dependent macros. |
Commit bb6fba2 should fix that error with MinGW32. |
Hi @kcat! Thank you very much for looking into this issue so quickly and excuse me for my late response. When trying to build OpenAL Soft with the generated Makefile (
Maybe the problem is in MinGW32 libraries? |
Looks like a problem with your headers. OpenAL Soft is including the system's |
Hi @kcat, thanks for your answer. I investigated a bit on this issue and I got a solution based on this answer: http://stackoverflow.com/questions/38436542/mingw-cxxtest-bizarre-errors Just replacing Despite getting the
I used Am I missing any define or additional configuration? |
Update on this issue: it seems I was trying to link with some other instance of libopenal32.a on my system. I managed to link OpenAL Soft statically with my program using MinGW32. Just for reference, my example compile-link line is:
Note I must link also with |
It seems that VS2015 already has an implemention of
struct timespec
, so the one in threads.h causes said error message. I guess the macro_TIMESPEC_DEFINED
is only defined in MinGW.The text was updated successfully, but these errors were encountered: