Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #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 05:28 AM.
Reply With Quote
  #2 (permalink)  
Old 07-29-2003
bernard's Avatar
bernard bernard is offline
ZeroC Staff
 
Name: Bernard Normier
Organization: ZeroC, Inc.
Project: Ice
 
Join Date: Feb 2003
Location: Palm Beach Gardens, FL
Posts: 761
Hi Alex,

You need to enable RTTI to use dynamic_cast. With Visual C++ 7.0, this is done by compiling with /GR. If you use the Visual Studio .NET IDE, it's an item in [Configuration Properties]/[C/C++]/[Language].

Cheers,
Bernard
Reply With Quote
  #3 (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
-->
Hello Bernard,

Thanks. It worked.

Alex
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Perhaps an error in Filesystem example albertods Bug Reports 2 03-14-2006 07:24 AM
Developing a FileSystem Client in PHP PeteH Comments 6 10-04-2005 06:18 PM
Leak Warning - Why? acbell Help Center 5 08-03-2005 02:55 PM
CS: compiler warning DeepDiver Bug Reports 2 01-10-2005 07:31 PM
C# FileSystem from book stephenhardeman Help Center 1 08-17-2004 10:52 PM


All times are GMT -4. The time now is 10:54 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.