|
|
|
|||||
|
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! |
|
|||||
|
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 :-/ |
|
|||||
|
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 ;-) |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 |