Hi Divick,

I have wrapped my osg-includes (which I put into a PCH) with:


#pragma warning(disable : 4275 4267 4244 4231)
#pragma warning(push, 1)

...

#pragma warning(pop)

This takes care of most of these issues.

/Marcus

Divick Kishore wrote:
> Hi all,
>         I have written an application which uses OpenSG for rendering. 
> When I compile my application, I get lots of compilation warnings. I am 
> using VC.NET2003 compiler (i.e. VC7) on Window XP. The type of warnings 
> that are shown by VC7 are shown below:
> 
> c:\trees\3dviewerapp\thirdparty\OpenSG\include\OpenSG\OSGSFBaseTypes.h(66) 
> : warning C4231: nonstandard extension used : 'extern' before template 
> explicit instantiation
> 
> And the line in OSGSFBaseTypes.h at 66 is shown below
> 
> #ifndef OSG_COMPILEFIELDINST
> OSG_DLLEXPORT_DECL1(SField, std::string, OSG_BASE_DLLTMPLMAPPING) //is 
> the line 66
> #endif
> 
> There are almost 242 such warnings and all of them point to some line 
> starting with OSG_DLLEXPORT_DECL1.
> 
> Is there some preprocessor declaration that I am missing or is it 
> something else?
> 
> Thanks,
> Divick
> 
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Opensg-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/opensg-users
> 


Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to