I am trying to build FTGL in a way such that I can link in 2 versions at once, and choose at runtime which instance to instantiate. In particular 1 version should link against and use gl*, while the other version should use mgl*, where the mgl* API is provided by a MESA implementation build with mangled symbols.


I have most of the mechanics worked out, but I now require that everything built as a part of FTGL is within 2 distinct namespaces, rather than being in the global namespace as it currently appears to be.


If I were to do this, would this be of general interest?


Is this something that is already being considered?


Does anyone have a preference for how this should be done?


Any other advice welcome.






Viral Patel

Senior Software Engineer,

Central Development Unit, ANSYS Europe Ltd.,

West Central 127, Milton Park,

Abingdon, Oxfordshire OX14 4SA

United Kingdom

Tel: +44 (0) 1235 432265

Fax: +44 (0) 870 142 0301

Web: www.ansys.com



The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.  

ANSYS UK Ltd. registered in England and Wales, is a wholly owned subsidiary of ANSYS, Inc.

Company Registration No: 3917515. Registered Office: 47 Castle Street, Reading, Berkshire RG1 7SR. VAT No: GB 471 0875 44