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()
>
> But when i write down as follows :
>
> cout << GetMajorVersion() << endl;
>
> i get the following error:
>
> firstOSG.cpp: In function 'int main(int, char**)':
> firstOSG.cpp:168: error: 'GetVersion' was not declared in this scope
>
> what does that function returns ?
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.
Hope it helps,
Carsten
-------------------------------------------------------------------------
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