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

Error compiling in Visual Studio 2022. Missed #include: <cstdio> and <cstring> in sdl.cc? #451

Open
ssh4net opened this issue Mar 4, 2024 · 0 comments

Comments

@ssh4net
Copy link

ssh4net commented Mar 4, 2024

After successful configuration and running a build:

cmake --build . --config Release --target install -j16

a had an error

  sdl.cc
E:\GH\libde265\dec265\sdl.cc(41,5): error C3861: 'printf': identifier not found [E:\GH\libde265\build\dec265\dec265.vcxproj]
E:\GH\libde265\dec265\sdl.cc(52,5): error C3861: 'printf': identifier not found [E:\GH\libde265\build\dec265\dec265.vcxproj]
E:\GH\libde265\dec265\sdl.cc(61,5): error C3861: 'printf': identifier not found [E:\GH\libde265\build\dec265\dec265.vcxproj]
E:\GH\libde265\dec265\sdl.cc(74,5): error C3861: 'printf': identifier not found [E:\GH\libde265\build\dec265\dec265.vcxproj]
E:\GH\libde265\dec265\sdl.cc(82,5): error C3861: 'printf': identifier not found [E:\GH\libde265\build\dec265\dec265.vcxproj]
E:\GH\libde265\dec265\sdl.cc(136,5): error C3861: 'memcpy': identifier not found [E:\GH\libde265\build\dec265\dec265.vcxproj]
E:\GH\libde265\dec265\sdl.cc(137,5): error C3861: 'memcpy': identifier not found [E:\GH\libde265\build\dec265\dec265.vcxproj]
E:\GH\libde265\dec265\sdl.cc(138,5): error C3861: 'memcpy': identifier not found [E:\GH\libde265\build\dec265\dec265.vcxproj]
E:\GH\libde265\dec265\sdl.cc(146,9): error C3861: 'memcpy': identifier not found [E:\GH\libde265\build\dec265\dec265.vcxproj]
E:\GH\libde265\dec265\sdl.cc(151,9): error C3861: 'memcpy': identifier not found [E:\GH\libde265\build\dec265\dec265.vcxproj]
E:\GH\libde265\dec265\sdl.cc(156,9): error C3861: 'memcpy': identifier not found [E:\GH\libde265\build\dec265\dec265.vcxproj]
E:\GH\libde265\dec265\sdl.cc(169,5): error C3861: 'memcpy': identifier not found [E:\GH\libde265\build\dec265\dec265.vcxproj]
E:\GH\libde265\dec265\sdl.cc(177,9): error C3861: 'memcpy': identifier not found [E:\GH\libde265\build\dec265\dec265.vcxproj]
E:\GH\libde265\dec265\sdl.cc(183,3): error C3861: 'memset': identifier not found [E:\GH\libde265\build\dec265\dec265.vcxproj]
E:\GH\libde265\dec265\sdl.cc(196,5): error C3861: 'memcpy': identifier not found [E:\GH\libde265\build\dec265\dec265.vcxproj]
E:\GH\libde265\dec265\sdl.cc(206,5): error C3861: 'memcpy': identifier not found [E:\GH\libde265\build\dec265\dec265.vcxproj]
E:\GH\libde265\dec265\sdl.cc(207,5): error C3861: 'memcpy': identifier not found [E:\GH\libde265\build\dec265\dec265.vcxproj]
E:\GH\libde265\dec265\sdl.cc(246,7): error C3861: 'memcpy': identifier not found [E:\GH\libde265\build\dec265\dec265.vcxproj]
  Generating Code...

same error in VS Gui.

issue was fixed by adding into a sdl.cc

#include <cstring>
#include <cstdio>

Not sure why that possible, but looks like this two includes was missed. Or probably default Cmake configuration disabled std library.

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