openscenegraph / OpenSceneGraph

OpenSceneGraph git repository
http://www.openscenegraph.org
Other
3.25k stars 1.42k forks source link

BUG - 'GifAsciiTable8x8': 'const' object must be initialized if not 'extern' #1310

Open AhmedAredah opened 8 months ago

AhmedAredah commented 8 months ago

I am building OpenSceneGraph on Windows 11 x64 using MSVC 16 2019. This is the error i am getting:

C:\ProgramData\Anaconda3\Library\include\gif_lib.h(286,61): error C2734: 'GifAsciiTable8x8': 'const' object must be initialized if not 'extern' [D:\dev\OpenSceneGraph\build\src\osgPlugins\gif\osgdb_gif.vcxproj]

LaurensVoerman commented 4 days ago

You appear to have a modified version of the gif library headers. In the source code on http://sourceforge.net/projects/giflib/ the GifAsciiTable8x8 has been declared as "extern const" in all versions. Laurens.