Hi all,

I currently face an issue with gcc's compiler option -fvisibility=hidden. When 
I try to compile my OpenSG executable with that option, the resulting program 
shows a very strange behavior. For example, if I try to create a geometry like 
this...

  GeoPositions3fPtr pos = GeoPositions3f::create();
  beginEditCP(pos);
  [...]
  endEditCP(pos);

  [...]

  GeometryPtr geo = Geometry::create();
  beginEditCP(geo);
  geo->setPositions(pos);
  [...]
  endEditCP(geo);

...each GeoProperty<T>::create() returns NullFC and only Geometry::create() 
returns a valid pointer. But when I create a SimpleGeometry like this...

  GeometryPtr geo = makeTorusGeo(0.5,4,8,16);

...everything works fine.
But I don't really understand why my first approach doesn't work.

Another question is, whether it is possible to compile OpenSG itself with 
-fvisibility=hidden and how the OpenSG sources have to be modified for that.
Would this solve my above problem too?

Cheers,
Thomas

--
Dipl.-Inform. Thomas Henn
Senior Software Development Engineer - Postprocessing Technology
Tel: +49 6151 7303 846, Fax: +49 6151 7303 100
E-Mail: [email protected], Web: www.cst.com
--
CST-Computer Simulation Technology AG, Bad Nauheimer Str. 19, 64289 Darmstadt, 
Germany
HRB 87073 Darmstadt, VAT: DE152703144
Chairman of the Supervisory Board: Prof. Dr. Thomas Weiland
Management Board: Dipl.-Ing. Michael Bartsch, Dr. Peter Thoma, Dr. Bernhard 
Wagner


------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to