Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 10-09-2004
hzx hzx is offline
Registered User
 
 
Join Date: Aug 2004
Location: Wuhan, China
Posts: 4
Question Please help me!

In Redhat 9.0, I have installed and compiled ICE-1.5.1 successfully. All demos worked fine! Last days, I tried to design a simple test program. At the basis of "hello, world!" code, I inserted a single line:
#include <Ice/Ice.h>
When I compiled this program, it gave the following output:

g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/opt/Ice-1.5.1/include/ -Wall -g -c -o main.o `test -f 'main.cc' || echo './'`main.cc
In file included from /opt/Ice-1.5.1/include/IceUtil/Exception.h:13,
from /opt/Ice-1.5.1/include/IceUtil/Handle.h:13,
from /opt/Ice-1.5.1/include/Ice/Handle.h:13,
from /opt/Ice-1.5.1/include/Ice/LocalObjectF.h:13,
from /opt/Ice-1.5.1/include/Ice/CommunicatorF.h:16,
from /opt/Ice-1.5.1/include/Ice/Initialize.h:13,
from /opt/Ice-1.5.1/include/Ice/Ice.h:13,
from main.cc:14:
/opt/Ice-1.5.1/include/IceUtil/Config.h:196: `INT64_MIN' was not declared in
this scope
/opt/Ice-1.5.1/include/IceUtil/Config.h:197: `INT64_MAX' was not declared in
this scope
make: *** [main.o] Error 1

What's wrong with me?
__________________
Huang
Reply With Quote
  #2 (permalink)  
Old 10-09-2004
marc's Avatar
marc marc is offline
ZeroC Staff
 
Name: Marc Laukien
Organization: ZeroC, Inc.
Project: The Internet Communications Engine
 
Join Date: Feb 2003
Location: Florida
Posts: 1,781
Without seeing the actual code, it's hard to tell. My first suggestion would be to make sure that the #include <Ice/Ice.h> is the first statement in your code. If this doesn't help, we would need to see a small example that demonstrates the problem.
Reply With Quote
  #3 (permalink)  
Old 10-09-2004
hzx hzx is offline
Registered User
 
 
Join Date: Aug 2004
Location: Wuhan, China
Posts: 4
Smile

Yes, you are right! When I put #include <Ice/Ice.h> as the first code line, errors disappeared.
Thank you very much.
__________________
Huang
Reply With Quote
  #4 (permalink)  
Old 10-09-2004
teenvoon.RaySir teenvoon.RaySir is offline
Registered User
 
 
Join Date: Oct 2004
Location: 涼廈.拞崙
Posts: 5
Cool 这倒是C语言编译器的问题

和ICE的关系不大.我用的BCX,乱七八糟的事情更多.
Reply With Quote
  #5 (permalink)  
Old 10-09-2004
teenvoon.RaySir teenvoon.RaySir is offline
Registered User
 
 
Join Date: Oct 2004
Location: 涼廈.拞崙
Posts: 5
Angry Terrible, no Chinese char supported your web

No Chinese supported?!!

just now me telled:

these kind of trouble comes from the compiler, has nothing with ICE. A better compiler should careless of the order of the header file included in a c or cpp file, unless something need should be known in some sequence.

my compile is BCX which from Borland, more trouble me encounted. when, me just move the code block up and down to drive it passed, or modify the ICE header file directedly..

Reply With Quote
  #6 (permalink)  
Old 10-09-2004
marc's Avatar
marc marc is offline
ZeroC Staff
 
Name: Marc Laukien
Organization: ZeroC, Inc.
Project: The Internet Communications Engine
 
Join Date: Feb 2003
Location: Florida
Posts: 1,781
The software for the forums here have nothing to do with Ice. Please send comments regarding the forum software to Jelsoft Enterprises Limited. (www.vbulletin.com)

Ice supports Unicode, and therefore supports Chinese character sets.
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


All times are GMT -4. The time now is 05:24 PM.


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.