Hello,

usually i can fix my compilation and linking errors myself, but this time i really have no idea where to look for the error.

I get this error:
augmenter.o(.text+0x6451): In function `ConvertImage(BIAS::Camera<unsigned char>&, osg::FCPtr<osg::AttachmentContainerPtr, osg::Image>)': : undefined reference to `osg::Image::set(unsigned, int, int, int, int, int, double, unsigned char const*, int, bool, int)'

The strange thing is that, there is no undefined reference, if i link
with the dbg libs:
If i exchange the following in my linker call
`/opt/net/gcc33/OpenSG/bin/osg-config --opt --libs Base System GLUT`
with
`/opt/net/gcc33/OpenSG/bin/osg-config --libs Base System GLUT`
there is no undefined reference.
Anybody any idea?

I use
gcc version 3.3 20030226 (prerelease) (SuSE Linux)
and the OpenSG CVS version from the 29th of Nov.

The set function is called in my code like this:

int ConvertImage(BIAS::Camera<unsigned char> &in,
                 osg::ImagePtr out)
{
  BIAS::Image<unsigned char> tmp;
  if (in.GetColorModel()!=BIAS::ImageBase::CM_RGB) {
    BIAS::ImageConvert::Convert(in,tmp,BIAS::ImageBase::CM_RGB);
  } else tmp=in;
  tmp.Flip();
  beginEditCP(out);
  out->set(osg::Image::OSG_RGB_PF,tmp.GetWidth(),tmp.GetHeight());
  out->setData(tmp.GetImageData());
  endEditCP(out);
  return 0;
}

A hopefully thankful,
        Daniel Grest



--
Advertising: The science of arresting the human intelligence long
enough to get money from it.
     - Stephen Leacock


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/
_______________________________________________
Opensg-users mailing list
Opensg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to