Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 09-12-2006
ZeroX ZeroX is offline
Registered User
 
 
Join Date: Jul 2006
Posts: 5
error C2027: use of undefined type 'Ice::0bjectAdapter'

I'm a new guy of ICE and I got a compliation error,

Simply to say, there is a function in a class,let say,

void destroy(const Ice::Current& current)
{
......

current.adapter->remove(current.id);

......
}

And I got this error "error C2027: use of undefined type 'Ice::0bjectAdapter'"
at this line.

Looks like I did not include necessary .h, but I do include the .h which is generated from .ice . I am not sure if I missed anything else?

Could someone help me on this? I serached the forums and did not get the answer.

Thanks very much!
__________________
Wei Xue
Shang Hai, China
Open Source Project based on ICE
Reply With Quote
  #2 (permalink)  
Old 09-12-2006
beagles's Avatar
beagles beagles is offline
ZeroC Staff
 
Name: Brent Eagles
Organization: ZeroC, Inc
Project: Ice Developer
 
Join Date: Feb 2003
Location: Newfoundland
Posts: 110
For new Ice users, I recommend looking at the demos that are bundled with the Ice source distributions. There are some neat idioms in there that will facilitate and accelerate your Ice development endeavors. You should also consider reading our newsletters. The newsletters cover topics ranging from the very rudimentary to the advanced.

As for this particular problem, it does indeed sound like you are missing the appropriate header file. The quick route to solving this is to simply include the Ice.h header file, e.g.:

#include <Ice/Ice.h>
Reply With Quote
  #3 (permalink)  
Old 09-12-2006
ctennis ctennis is offline
Registered User
 
Name: Caleb Tennis
Organization: AEI
Project: Project GINA
 
Join Date: Mar 2006
Posts: 120
Quote:
Originally Posted by ZeroX
And I got this error "error C2027: use of undefined type 'Ice::0bjectAdapter'"
at this line.
Maybe you just misquoted, but your error seems to indicate you are using the number 0 and not the letter O for ObjectAdapter.
__________________
Caleb Tennis
Analytical Engineering, Inc.
http://www.aei-tech.com
Project: Our facility infrastructure heavily utilizes Ice

Gentoo ebuild maintainer for Ice, IceRuby, etc.
Reply With Quote
  #4 (permalink)  
Old 09-13-2006
ZeroX ZeroX is offline
Registered User
 
 
Join Date: Jul 2006
Posts: 5
Smile Thanks Brent!

Actually, after I include <Ice/Ice.h>, everything is ok now.
I should read more demo code at first
__________________
Wei Xue
Shang Hai, China
Open Source Project based on ICE
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
Undefined typeinfo on Tiger daniell Help Center 1 11-10-2005 01:42 PM
slice2cpp: relocation error: ... undefined symbol: yydebug catalin Help Center 1 11-07-2003 08:56 AM
Undefined make variable conflicting with environment ashar Bug Reports 1 07-24-2003 04:14 PM
Ice-1.1.0: compile error "undefined reference to xercesc_2_2" Urs Help Center 2 05-30-2003 04:29 PM
Why allow undefined behavior ? Mogens Hansen Comments 2 02-19-2003 05:46 PM


All times are GMT -4. The time now is 11:27 PM.


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