View Single Post
  #1 (permalink)  
Old 07-29-2003
amrufon's Avatar
amrufon amrufon is offline
Registered User
 
Name: Alex
Organization: IST
Project: jDatabase
 
Join Date: May 2003
Location: Manila, Philippines
Posts: 96
Send a message via Yahoo to amrufon
-->
FileSystem Client Compile Warning

Hello.

I was trying out the File System Client in C++ (as found in the documentation on Chapter 7) using Visual Studio.NET 2002 and I got the following warnings:
Quote:
Performing Custom Build Step
Compiling...
client.cpp
FileSystem.cpp
FileSystem.cpp(60) : error C2220: warning treated as error - no object file generated
FileSystem.cpp(60) : warning C4541: 'dynamic_cast' used on polymorphic type 'IceProxy::Ice::Object' with /GR-; unpredictable behavior may result
Since I'm compiling with /WX option (Treat warnings as errors), the build will fail. Of course ... I got it to work but it just bothers me that I can't specificy the /WX option.

Any ideas?

Alex

P.S.
My complete compile parameters are:
Quote:
/Od /I "." /D "_DEBUG" /D "_WINDOWS" /D "_UNICODE" /D "UNICODE" /FD /EHsc /RTC1 /MDd /GS /Fo"Debug/" /Fd"Debug/vc70.pdb" /W3 /WX /nologo /c /Zi /Gd

Last edited by amrufon : 07-29-2003 at 06:28 AM.
Reply With Quote