Hi All,
Carsten Neumann wrote:
> Hi Sajjadul,
>
> On Thu, 2007-08-23 at 15:03 +0200, Sajjadul Islam wrote:
>> Hello,
>>
>> I would like to get the version information at runtime within the code
>> snippet.
>>
>> In the design document it says that i can get that by GetMajorVersion
>> () and GetMinorVersion()
The design doc was not implement exactly like that. For the versioning we use
Macros, as those allow you to decide things at compile time, too.
> nothing, they do not exist, sorry.
> However, if you want to check from your application that it uses at
> least a certain version of OpenSG, you can pass additional paramters to
> osgInit, see Source/Base/Base/OSGBaseFunctions.{h,cpp}. I don't think
> this is currently documented anywhere so I'm afraid you'll have to read
> the code.
I would consider that a hack. ;) The parameters in osgInit are set as default
parameters by the compiler. The purpose is to check whether the program is
linked against the same version of the library it was compiled against. If not
things can go fairly spectacularly wrong, so messing with that is not a good
idea.
Yours
Dirk
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users