Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 07-03-2005
MKoleoso MKoleoso is offline
Registered User
 
 
Join Date: Feb 2004
Location: Aachen, Germany
Posts: 9
Link problem using a string to class map

Hello,
using the interface given below, i'm getting 2 link errors indicating unresolved external symbols.
I'm using C++ in VS2003. What is the problem with the missing externals?

Slice definition:
module WGICE
{
class PersistentUserAccount
{
string name;
string password;
string email;
};
};


Slice Freeze command:
slice2freeze -I$(ICE_HOME)\slice --dict StringPersistentUserAccountMap,string,WGICE::Persi stentUserAccount PersistentUserAccountMap PersistentUserAccount.ice


Linking libraries:
iced.lib iceutild.lib freezed.lib libdb42d.lib


Error message:
PersistentUserAccountMap.obj : error LNK2019: Nicht aufgelöstes externes Symbol
'"void __cdecl WGICE::__write(class IceInternal::BasicStream *,
class IceInternal::Handle<class WGICE::PersistentUserAccount> const &)"
(?__write@WGICE@@YAXPAVBasicStream@IceInternal@@AB V?$Handle@VPersistentUserAccount@WGICE@@@3@@Z)',
verwiesen in Funktion '"public: static void __cdecl StringPersistentUserAccountMapValueCodec::write(cl ass IceInternal::Handle<class WGICE::PersistentUserAccount> const &,
class std::vector<unsigned char,class std::allocator<unsigned char> > &,class IceInternal::Handle<class Ice::Communicator> const &)"
(?write@StringPersistentUserAccountMapValueCodec@@ SAXABV?$Handle@VPersistentUserAccount@WGICE@@@IceI nternal@@AAV?$vector@EV?$allocator@E@std@@@std@@AB V?$Handle@VCommunicator@Ice@@@3@@Z)'

PersistentUserAccountMap.obj : error LNK2019: Nicht aufgelöstes externes Symbol '"void __cdecl WGICE::__patch__PersistentUserAccountPtr(void *,
class IceInternal::Handle<class Ice::Object> &)"
(?__patch__PersistentUserAccountPtr@WGICE@@YAXPAXA AV?$Handle@VObject@Ice@@@IceInternal@@@Z)',
verwiesen in Funktion '"public: static void __cdecl StringPersistentUserAccountMapValueCodec::read(cla ss IceInternal::Handle<class WGICE::PersistentUserAccount> &,
class std::vector<unsigned char,class std::allocator<unsigned char> > const &,class IceInternal::Handle<class Ice::Communicator> const &)"
(?read@StringPersistentUserAccountMapValueCodec@@S AXAAV?$Handle@VPersistentUserAccount@WGICE@@@IceIn ternal@@ABV?$vector@EV?$allocator@E@std@@@std@@ABV ?$Handle@VCommunicator@Ice@@@3@@Z)'

..\..\Debug/LoginTestServer.exe : fatal error LNK1120: 2 unaufgelöste externe Verweise


Thanks for any help!
Reply With Quote
  #2 (permalink)  
Old 07-03-2005
mes's Avatar
mes mes is online now
ZeroC Staff
 
Name: Mark Spruiell
Organization: ZeroC, Inc.
Project: Ice Developer
 
Join Date: Feb 2003
Location: California
Posts: 971
Hi,

You also need to compile and link with the output of slice2cpp for your Slice definitions.

If you are still having trouble, the quickest way to resolve is to attach a ZIP file containing your project and we'll take a look at it.

Take care,
- Mark
Reply With Quote
  #3 (permalink)  
Old 07-03-2005
MKoleoso MKoleoso is offline
Registered User
 
 
Join Date: Feb 2004
Location: Aachen, Germany
Posts: 9
Solved!

Hello again,
thank you for that tip. I was missing a dependent class from which the map is generated. I added that to my solution and it links fine.

Regards, and thanks for the quick answer on a Sunday!
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
link error when the class is inherited from ICE::Object nyingchi Help Center 7 10-19-2006 12:03 AM
problem with IceUtil::Monitor(link errors) myaniu Help Center 5 07-12-2006 05:53 AM
problem with cs:class attribute kovacm Bug Reports 7 08-26-2005 12:12 AM
problem in mapping string->string[] in C# teayu Help Center 2 10-27-2004 12:12 AM
problem with string sequences alexs Bug Reports 4 01-27-2004 11:28 AM


All times are GMT -4. The time now is 08:11 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.