Hi,

On Wed, 2012-08-29 at 13:54 +0200, Alexander Lang wrote:
> Hi,
> following the tutorial on
> http://www.opensg.org/wiki/Tutorial/OpenSG2/NewContainerType i created a
> new field container type that is supposed to compile to a library called
> "DepthPeeling". However, using Visual Studio 2010 i am unable to compile
> the library because of the following error: "error C2491:
> 'OSG::DepthPeelingStageBase::_type' : definition of dllimport static data
> member not allowed". Looking at the code i see that the generated user cpp
> file (DepthPeelingStage.cpp) contains the macro #define
> OSG_COMPILEDEPTHPEELINGLIB, but not the base cpp file
> (DepthPeelingStageBase.cpp). My question is: Why does fcd2code not include
> that macro also in the base cpp?

that looks off, the #define in the user cpp file looks like a left over,
which I will remove.

I general this define should be set on the compiler command line, e.g.
for each lib the CMake configuration files contain something like :

ADD_DEFINITIONS(-DOSG_COMPILECUBESLIBLIB)

Could you try to add the OSG_COMPILEDEPTHPEELINGLIB define to your
compiler command line.

kind regards
  gerrit




------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Opensg-users mailing list
Opensg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to