Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 02-28-2003
CatOne CatOne is offline
Registered User
 
Name: Bill Lloyd
Organization: --
Project: --
 
Join Date: Feb 2003
Location: California
Posts: 18
STLPort link error

Hi, I'm building ICE 1.0.1 on Windows XP -- VC 6.0 SP 5 (release configuration) and I'm getting a link error:

Creating library Release/slice101.lib and object Release/slice101.exp
Grammar.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) class _STL::basic_string<char,class _STL::char_traits<char>,class _STL::allocator<char> > __cdecl IceUtil::generateUUID(void)" (__imp_?generateUUID@IceUtil@@YA?AV?$basic_
string@DV?$char_traits@D@_STL@@V?$allocator@D@2@@_ STL@@XZ)
Release/slice101.dll : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

I'm using VC++ 6.0 -- This looks like a STLPort issue. I did the default "make install" with STLPort which copies the STLPort .lib files to Developer Studio\vc98\lib -- I can see them there. However they're not picked up -- Are the names of the STLPort lib files specified somewhere in the project settings or do I need to set something?

Thanks!
Reply With Quote
  #2 (permalink)  
Old 02-28-2003
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,772
Are you sure that you are using the STLport include files, instead of the standard Visual C++ include files? You must add the ...\include\stlport directory to your include path, before any of the system includes. From INSTALL.WINDOWS:

Quote:
If you're using STLport, also add the include files for STLport. (Note that you must add the include\stlport directory, not just "include".)
You don't need to explicitly link any STLport libraries -- the STLport headers take care of this (provided that you use them ).
Reply With Quote
  #3 (permalink)  
Old 02-28-2003
CatOne CatOne is offline
Registered User
 
Name: Bill Lloyd
Organization: --
Project: --
 
Join Date: Feb 2003
Location: California
Posts: 18
I'm pretty sure...

The first line in my "include files is"

C:\DEVSTUDIO\VC98\INCLUDE\STLPORT

(which is where they're copied when you run 'nmake -f vc6.mak install' and have set your VC++ variables correctly.

I think it's finding the include files correctly, because previously I was getting some errors with "base64.cxx" before I put the STLPORT at the top and that problem went away, so I think it's picking them up :-/
Reply With Quote
  #4 (permalink)  
Old 02-28-2003
CatOne CatOne is offline
Registered User
 
Name: Bill Lloyd
Organization: --
Project: --
 
Join Date: Feb 2003
Location: California
Posts: 18
Okay I figured out the problem -- it actually was related to the previous problem of not having the include path correct. I had compiled a few files, but then changed the include settings. I forgot to do a clean recompile, so some of the .obj files had references to the VC++ STL files in them, I'm betting.

Cleaning and rebuilding cleared up the problem. Sorry ;-)
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
fatal error C1189: #error : "Ice for Visual C++ 6.0 requires STLport" richardma Help Center 4 01-13-2006 06:23 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 07:12 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.