Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 09-02-2003
gmueckl gmueckl is offline
Registered User
 
 
Join Date: Aug 2003
Posts: 8
Send a message via ICQ to gmueckl
-->
link error: error LNK2001: unresolved external symbol __imp___assert

Hi!

I have put the slice definitions and the generated source code in a simple static library project in order to simplify sharing between client and server.

Building the library itself works just great, but when I try to compile the server (started out with a win32 console app project) I get the following linking error because of the static library that contains only the autogenerated code:

Linking...
IceIF.lib(Datenbank.obj) : error LNK2001: unresolved external symbol __imp___assert
Debug/Server.exe : fatal error LNK1120: 1 unresolved externals

I do not know where this __imp___assert comes from. It must get included through a macro, but nothing similar appears in any headers on my system...

One final thing: I recompiled all of Ice against STLPort, but the demos work without problems.

Any ideas?

Regards,
Gregor
Reply With Quote
  #2 (permalink)  
Old 09-02-2003
bernard's Avatar
bernard bernard is online now
ZeroC Staff
 
Name: Bernard Normier
Organization: ZeroC, Inc.
Project: Ice
 
Join Date: Feb 2003
Location: Palm Beach Gardens, FL
Posts: 816
Hi Gregor,

When you build and link your static library, I recommend you use /MDd [debug] or /MD [release], which means use the DLL runtime libraries. With Visual C++ 6, you can set which runtime to use in Project Settings, C/C++ tab, "Code Generation" category, Use run-time library drop-down list.

You may be using /MTd (Debug Multithreaded), which could explain this link error.

Cheers,
Bernard
Reply With Quote
  #3 (permalink)  
Old 09-03-2003
gmueckl gmueckl is offline
Registered User
 
 
Join Date: Aug 2003
Posts: 8
Send a message via ICQ to gmueckl
-->
Cool

This helped. Thank you.

I hate MSVC for things like that ;-)

Regards,
Gregor
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 08:15 PM
Linking Problems: Unresolved external symbol Metadragonfire Help Center 2 06-26-2006 09:16 PM
Ice Php 1.0.2 link error fengxb Help Center 12 03-09-2004 01:08 AM
slice2cpp: relocation error: ... undefined symbol: yydebug catalin Help Center 1 11-07-2003 08:56 AM
link error with stl simpley Help Center 11 09-02-2003 06:58 PM


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