Hi Marcus,
                thanks for the reply.
>>Yes, the warning is totally ignorable. We've been running with it 
>>disabled for over a year now. :)
Still that does not answer why VC7 gives those errors ? From a language semantics perspective what really is wrong with that line?

>>You need not bother with precompile headers either. It isn't necessary. 
>>It just makes it easier. They're pretty easy to set up if you use isual 
>>Studio though, so look it up on the net if compilation times becomes a 
>>problem. (One small tip: stay away from automatic generation, it seldom 
>>works the way you expect.)

Ok that helps, and thanks for the tip.

Divick

Marcus Lindblom wrote:
Yes, the warning is totally ignorable. We've been running with it 
disabled for over a year now. :)

You need not bother with precompile headers either. It isn't necessary. 
It just makes it easier. They're pretty easy to set up if you use isual 
Studio though, so look it up on the net if compilation times becomes a 
problem. (One small tip: stay away from automatic generation, it seldom 
works the way you expect.)

/Marcus

Divick Kishore skrev:
  
I am not using pre-compiled headers for my build. Is it necessary to use 
them to avoid the warnings? I am not very familiar with PCH, can you 
point me to some links /references which talk in detail about PCH (Sorry 
for asking windows specific question in this forum but I guess things 
are related :-)  ) ?

    
#pragma warning(disable : 4275 4267 4244 4231)
        
AFAIK doing above will only disable the warning. Isn't there a clean and 
right way of doing this ? Is this warning ignorable really?

Thanks for the reply,
Divick


Marcus Lindblom wrote:
    
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

  
      
------------------------------------------------------------------------

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

  

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