-
Notifications
You must be signed in to change notification settings - Fork 193
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
Visual Studio compile error #60
Comments
Hi, Concerning the second issue, i'll need a bit more details to solve your problem, since we already have an inline after the always_inline attribute I believe deleting it should be ok. I don't know how to force inlining into visual studio (always_inline is a gcc option). You might like replacing the Pierre-Loup |
Hi Pierre-Loup, Thanks for your reply. Yes, av_always_inline will do the trick, i tested in my visual studio 2015. Thanks again, |
Hi,
i am trying to compile the project on my windows 7 machine.
I have the following configuration:
Environment: Toolset=v140; Configuration: Debug; Platform: x86
However, i got the following error:
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1421): fatal error C1189: #error: Macro definition of vsnprintf conflicts with Standard Library function declaration [C:\projects\openigtlink\build\Deps\openHEVC-bin\LibOpenHevcWrapper.vcxproj] [C:\projects\openigtlink\build\openHEVC.vcxproj]
I could fix the error by deleting the vsnprintf definition in CmakeLists file, showed as below:
if(WIN32)
add_definitions(
-Dsnprintf=avpriv_snprintf
-Dvsnprintf=avpriv_vsnprintf
-Dinline=__inline
-Drestrict=__restrict
)
endif()
Do you have a general solution for this problem?
Another issue is the function:
static attribute(always_inline)) inline ...................
This function also create error in compiling
after deleting the attribute(always_inline)) , the compiling succeeded.
Your kind answer to my questions would be greatly appreciated.
Best Regards,
Chan
The text was updated successfully, but these errors were encountered: