Your compiler seems messed up.
I don't know what to suggest as a workaround short of moving the function body
for isTransparent() from the .cpp file into the .h file.
-Paul
On 12/3/2012 10:21 AM, Enric Galceran wrote:
> I just did svn co on the trunk.
>
>
> On Mon, Dec 3, 2012 at 6:06 PM, Paul Martz <
pma...@skew-matrix.com
> <mailto:
pma...@skew-matrix.com>> wrote:
>
> Hm That's a mystery, as this code has been compiling on multiple platforms
> for some time now.
>
> What version of osgWorks are you using? The reason I ask is that the
> compiler is displaying an error for TransparencyUtils.h:138, but that line
> is blank in current svn trunk.
>
> I have no idea why the compiler wouldn't be able to find isTransparent(). It
> is declared at TransparencyUtils.h line 123.
>
> If you fix this, please post a patch.
> -Paul
>
>
>
> On 12/3/2012 9:32 AM, Enric Galceran wrote:
>
> Hi,
>
> I get the following error when trying to build osgworks. I'm using
> latest trunk
> on Ubuntu Quantal, 64 bits.
>
> Any clues?
>
> Thank you.
>
> [ 1%] Built target osgwControls
> [ 3%] Building CXX object
> src/osgwTools/CMakeFiles/__osgwTools.dir/__TransparencyUtils.cpp.o
> In file included from
> /home/enric/ros_workspace/__underwater_simulation/__osgWorks/build/osgw2/src/__osgwTools/TransparencyUtils.__cpp:21:0:
>
> /home/enric/ros_workspace/__underwater_simulation/__osgWorks/build/osgw2/include/__osgwTools/TransparencyUtils.h:
> In instantiation of �bool osgwTools::transparentDisable(__T*, bool)
> [with T =
> osg::Node]�:
>
> /home/enric/ros_workspace/__underwater_simulation/__osgWorks/build/osgw2/src/__osgwTools/TransparencyUtils.__cpp:136:31:
> required from here
>
> /home/enric/ros_workspace/__underwater_simulation/__osgWorks/build/osgw2/include/__osgwTools/TransparencyUtils.h:__138:5:
> error: �isTransparent� was not declared in this scope, and no
> declarations were
> found by argument-dependent lookup at the point of instantiation
> [-fpermissive]
>
> /home/enric/ros_workspace/__underwater_simulation/__osgWorks/build/osgw2/src/__osgwTools/TransparencyUtils.__cpp:34:6:
> note: �bool osgwTools::isTransparent(const osg::StateSet*)� declared
> here, later
> in the translation unit
> In file included from
> /home/enric/ros_workspace/__underwater_simulation/__osgWorks/build/osgw2/src/__osgwTools/TransparencyUtils.__cpp:21:0:
>
> /home/enric/ros_workspace/__underwater_simulation/__osgWorks/build/osgw2/include/__osgwTools/TransparencyUtils.h:
> In instantiation of �bool osgwTools::transparentDisable(__T*, bool)
> [with T =
> osg::Geode]�:
>
> /home/enric/ros_workspace/__underwater_simulation/__osgWorks/build/osgw2/src/__osgwTools/TransparencyUtils.__cpp:144:32:
> required from here
>
> /home/enric/ros_workspace/__underwater_simulation/__osgWorks/build/osgw2/include/__osgwTools/TransparencyUtils.h:__138:5:
> error: �isTransparent� was not declared in this scope, and no
> declarations were
> found by argument-dependent lookup at the point of instantiation
> [-fpermissive]
>
> /home/enric/ros_workspace/__underwater_simulation/__osgWorks/build/osgw2/src/__osgwTools/TransparencyUtils.__cpp:34:6:
> note: �bool osgwTools::isTransparent(const osg::StateSet*)� declared
> here, later
> in the translation unit
> In file included from
> /home/enric/ros_workspace/__underwater_simulation/__osgWorks/build/osgw2/src/__osgwTools/TransparencyUtils.__cpp:21:0:
>
> /home/enric/ros_workspace/__underwater_simulation/__osgWorks/build/osgw2/include/__osgwTools/TransparencyUtils.h:
> In instantiation of �bool osgwTools::transparentDisable(__T*, bool)
> [with T =
> osg::Drawable]�:
>
> /home/enric/ros_workspace/__underwater_simulation/__osgWorks/build/osgw2/src/__osgwTools/TransparencyUtils.__cpp:149:54:
> required from here
>
> /home/enric/ros_workspace/__underwater_simulation/__osgWorks/build/osgw2/include/__osgwTools/TransparencyUtils.h:__138:5:
> error: �isTransparent� was not declared in this scope, and no
> declarations were
> found by argument-dependent lookup at the point of instantiation
> [-fpermissive]
>
> /home/enric/ros_workspace/__underwater_simulation/__osgWorks/build/osgw2/src/__osgwTools/TransparencyUtils.__cpp:34:6:
> note: �bool osgwTools::isTransparent(const osg::StateSet*)� declared
> here, later
> in the translation unit
>
> --
> You received this message because you are subscribed to the Google Groups
> "osgworks-users" group.
> To view this discussion on the web visit
>
https://groups.google.com/d/__msg/osgworks-users/-/__puMlccOI9nMJ
> <
https://groups.google.com/d/msg/osgworks-users/-/puMlccOI9nMJ>.
> To post to this group, send email to osgworks-users@googlegroups.__com
> <mailto:
osgwork...@googlegroups.com>.
> To unsubscribe from this group, send email to
> osgworks-users+unsubscribe@__
googlegroups.com
> <mailto:
osgworks-users%2Bunsu...@googlegroups.com>.
> For more options, visit this group at
>
http://groups.google.com/__group/osgworks-users?hl=en
> <
http://groups.google.com/group/osgworks-users?hl=en>.
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "osgworks-users" group.
> To post to this group, send email to osgworks-users@googlegroups.__com
> <mailto:
osgwork...@googlegroups.com>.
> To unsubscribe from this group, send email to
> osgworks-users+unsubscribe@__
googlegroups.com
> <mailto:
osgworks-users%2Bunsu...@googlegroups.com>.
> For more options, visit this group at
>
http://groups.google.com/__group/osgworks-users?hl=en
> <
http://groups.google.com/group/osgworks-users?hl=en>.
>
>
>
>
> --
>
> Enric.
>
> --
> You received this message because you are subscribed to the Google Groups
> "osgworks-users" group.
> To post to this group, send email to
osgwork...@googlegroups.com.
> To unsubscribe from this group, send email to
>
osgworks-user...@googlegroups.com.