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: reference to 'byte' is ambiguous #13

Open
sheikfaaruk opened this issue Nov 13, 2024 · 0 comments
Open

error: reference to 'byte' is ambiguous #13

sheikfaaruk opened this issue Nov 13, 2024 · 0 comments

Comments

@sheikfaaruk
Copy link

Hi Everyone,
I try to install OpenSceneGraph Under Windows 10, and I follow the steps from [1.3.InstallUnderWindows] (https://github.com/OGStudio/openscenegraph-cross-platform-guide/tree/master/1.3.InstallUnderWindows)

$ cmake -G "MinGW Makefiles" ~/q/OpenSceneGraph/

$ cmake --build .

Output error from Msys2:

C:/msys64/mingw64/include/oaidl.h: 579:5: error: reference to 'byte' is ambiguous
579 | byte *pRecord;
| ^~~~
C:/msys64/mingw64/include/c++/14.2.0/cstddef:70:14: note: candidates are: 'enum class std::byte'
70 | enum class byte : unsigned char {};
| ^~~~
C:/msys64/mingw64/include/rpcndr.h: 93:25: note: 'typedef unsigned char byte'
93 | typedef unsigned char byte;
| ^~~~
mingw32-make[2]: *** [src\osg\CMakeFiles\osg.dir\build.make:769: src/osg/CMakeFiles/osg.dir/DisplaySettings.cpp.obj] Error 1
mingw32-make[1]: *** [CMakeFiles\Makefile2:2752: src/osg/CMakeFiles/osg.dir/all] Error 2
mingw32-make: *** [Makefile:135: all] Error 2

I don't know how to fix this issue in Msys2 [windows 10]

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