Go Back   ZeroC Forums > Bug Reports

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 02-18-2004
diddek diddek is offline
Registered User
 
 
Join Date: Jan 2004
Posts: 8
dynamic link error

Hi

I had the following link error:

firmq.obj : error LNK2019: unresolved external symbol "void __cdecl IceInternal::incRef(class IceProxy::MonkeyOnIce::Floor *)"

I have a client in directory a: "firm" and a server in directory b: "floor".

And in spite of the examples, I felt I did not want to include the floor.cpp file in both applications.

Instead I have a separate dll with the slice generated code which client en server both can link against.

But then the client could not link, becasue incRef (etc) is not exported by the dll - so I added __declspec (dllexport) - TO THE GENERATED CODE (bad idea).

Is not having the export a bug or a feature?

I just felt it is cleaner: instead of having links all over my directories (or have 1 directory), I just link to a dll.

Is there an opinion on this one?

Thanks in advance.

Dirk
Reply With Quote
  #2 (permalink)  
Old 02-18-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,780
You must run slice2cpp with the --dll-export SYMBOL option. Have a look at one of the various Ice DLLs included in the source distribution for an example.
Reply With Quote
  #3 (permalink)  
Old 02-18-2004
diddek diddek is offline
Registered User
 
 
Join Date: Jan 2004
Posts: 8
Sorry!!

(I'll try and read manuals more carefull!)

Thanks for the reply though.

Dirk
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
vc 6 link error mwilson Help Center 5 02-13-2007 07:15 PM
Link error on Solaris ACM Help Center 2 10-28-2005 03:54 AM
Ice Php 1.0.2 link error fengxb Help Center 12 03-09-2004 12:08 AM
link error: error LNK2001: unresolved external symbol __imp___assert gmueckl Help Center 2 09-03-2003 02:49 AM
link error with stl simpley Help Center 11 09-02-2003 05:58 PM


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