Hi,

On Fri, 2009-09-11 at 12:03 -0500, Carsten Neumann wrote:
> Hello Johannes, Gerrit,
> 
> On Fri, Sep 11, 2009 at 8:45 AM, Gerrit Voß <[email protected]> wrote:
> > On Fri, 2009-09-11 at 21:37 +0800, Gerrit Voß wrote:
> >> On Fri, 2009-09-11 at 14:45 +0200, Johannes Brunen wrote:
> >> > I did just make an opposite test. I moved the 
> >> > OSGOSBHandleEntAttachment.cpp
> >> > fiile into the source/System/FileIO/OSB folder and after some minor 
> >> > include
> >> > path customization the file compiles fine (as expected). So this file 
> >> > can't
> >> > live in a separate library.
> >>
> >> hmm, I would call that a bug. At least for the VRML loader the helper
> >> registration can live outside the main fileio lib. Let me check it.
> 
> I agree that it is a bug and it probably is just some small problem
> with the DLLMAPPING stuff, there should not be anything major
> preventing extensions of the OSB loader in separate libraries.
> 
> > for testing, could you remove the 2 OSG_FILEIO_DLLMAPPING occurrences
> > from OSGOSBElementFactoryHelper.h They should not be needed and I
> > suspect them to be responsible for your errors.
> 
> ... yes, either that or try adding
> 
> #include "OSGConfig,h"
> #include "OSGFileIODef.h"
> 
> to OSGOSBElementFactoryHelper.h

hmm, I don't think that works, the problem is not that
OSG_FILEIO_DLLMAPPING is unknown (OSGFileIODef is actually seen), it is
that without the -DFILEIO_COMPILE setup it is resolved to
__declspec(dllimport) not export, hence the compiler complains about
'definition of dllimport function not allowed'.

kind regards,
  gerrit



------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to