I've run into that a lot too. One solution is to pass --enable-win-localstorage to configure.

Christoph Fuenfzig wrote:


Hi,

I have some problems with the CVS version compiling with .NET2003, STLport 4.6

using BD := g:\OpenSG\Source
"/cygdrive/e/Program Files/Microsoft Visual Studio .NET 2003/Vc7/bin/cl.exe" -W 3 -w44049 -w44065 -w44251 -w44275 -w44099 -w44250 -w44231 -DOSG_WITH_STLPORT -DOSG_WITH_GLUT -DOSG_WITH_QT -DOSG_WITH_JPG -DOSG_WITH_PNG -DOSG_WITH_GIF -DOSG_WITH_FREETYPE1 -DWIN32 -D_WINDOWS -DWINVER=0x0400 -D_WIN32_WINDOWS=0x0410 -D_WIN32_WINNT=0x0400 -D_OSG_HAVE_CONFIGURED_H_ -DOSG_GV_BETA -DOSG_BUILD_DLL -DQT_NO_STL -DQT_DLL -DQT_THREAD_SUPPORT -DQT_ACCESSIBILITY_SUPPORT -DQT_NO_DEBUG -GX -Gi- -FD -GR -Zm1200 -MDd -ZI -Od -GZ -D_DEBUG -c -Ie:/extern/STLport-4.6/stlport -I"..\Base" -I"e:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include" -I"e:\extern\fox-1.0.40\include" -I"e:\extern\rapid\include" -I"e:\extern\OpenMesh_1.0.0.b3" -I"$BD\Base\Base" -I"$BD\Base\Field" -I"$BD\Base\Functors" -I"$BD\Base\Network\Base" -I"$BD\Base\Network\Socket" -I"$BD\Base\StringConversion" -I"$BD\Base\Xml" -
I"$BD\Experimental\Gerrit\Base"   \
-DOSG_COMPILEBASELIB -I"obj-dbg" -I"."          \
-Fo"obj-dbg\\" "g:\OpenSG\Source\Base\Base\OSGBarrier.cpp"
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 13.10.3077 for 80x86
Copyright (C) Microsoft Corporation 1984-2002. All rights reserved.

OSGBarrier.cpp
g:\OpenSG\Source\Base\Base\OSGBaseThread.h(430) : error C2492: 'osg::BaseWinThreadBase::_pThreadLocal' : 'thread' data may not have dll interface g:\OpenSG\Source\Base\Base\OSGBaseThread.h(430) : error C2492: 'operator` _pThreadLocal 0'' : 'thread' data may not have dll interface
make[2]: *** [obj-dbg/OSGBarrier.obj] Error 2
using BD := g:\OpenSG\Source
"/cygdrive/e/Program Files/Microsoft Visual Studio .NET 2003/Vc7/bin/cl.exe" -W 3 -w44049 -w44065 -w44251 -w44275 -w44099 -w44250 -w44231 -DOSG_WITH_STLPORT -DOSG_WITH_GLUT -DOSG_WITH_QT -DOSG_WITH_JPG -DOSG_WITH_PNG -DOSG_WITH_GIF -DOSG_WITH_FREETYPE1 -DWIN32 -D_WINDOWS -DWINVER=0x0400 -D_WIN32_WINDOWS=0x0410 -D_WIN32_WINNT=0x0400 -D_OSG_HAVE_CONFIGURED_H_ -DOSG_GV_BETA -DOSG_BUILD_DLL -DQT_NO_STL -DQT_DLL -DQT_THREAD_SUPPORT -DQT_ACCESSIBILITY_SUPPORT -DQT_NO_DEBUG -GX -Gi- -FD -GR -Zm1200 -MDd -ZI -Od -GZ -D_DEBUG -c -Ie:/extern/STLport-4.6/stlport -I"..\Base" -I"e:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include" -I"e:\extern\fox-1.0.40\incl ude" -I"e:\extern\rapid\include" -I"e:\extern\OpenMesh_1.0.0.b3" -I"$BD\Base\Base" -I"$BD\Base\Field" -I"$BD\Base\Functors" -I"$BD\Base\Network\Base" -I"$BD\Base\Network\Socket" -I"$BD\Base\StringConversion" -I"$BD\Base\Xml" -I"$BD\Experimental\Gerrit\Base" \
-DOSG_COMPILEBASELIB -I"obj-dbg" -I"."          \
-Fo"obj-dbg\\" "g:\OpenSG\Source\Base\Base\OSGBaseFunctions.cpp"
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 13.10.3077 for 80x86
Copyright (C) Microsoft Corporation 1984-2002. All rights reserved.

OSGBaseFunctions.cpp
g:\OpenSG\Source\Base\Base\OSGBaseThread.h(430) : error C2492: 'osg::BaseWinThre
adBase::_pThreadLocal' : 'thread' data may not have dll interface
g:\OpenSG\Source\Base\Base\OSGBaseThread.h(430) : error C2492: 'operator` _pThre
adLocal 0'' : 'thread' data may not have dll interface
make[2]: *** [obj-dbg/OSGBaseFunctions.obj] Error 2


After changing OSGConfigured.h from

#if defined (OSG_USE_WINTHREADS)
/* #undef OSG_ASPECT_USE_LOCALSTORAGE */
#define OSG_ASPECT_USE_DECLSPEC 1
#endif

to

#if defined (OSG_USE_WINTHREADS)
#define OSG_ASPECT_USE_LOCALSTORAGE 1
/* #undef OSG_ASPECT_USE_DECLSPEC 1 */
#endif

it compiles and also seems to run correctly. Bug in OSGConfigured.h for .NET2003?

Greetings,
Christoph Fünfzig




-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to