Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 02-12-2007
mwilson mwilson is offline
Registered User
 
Name: Mark Wilson
Organization: University of Rochester
Project: Omega EP laser
 
Join Date: Jul 2005
Location: Rochester, NY
Posts: 73
vc 6 link error

I get this error:

LINK : fatal error LNK1104: cannot open file "stlport_vc6_static.lib"

when I try to make a simple DLL with Visual C++ 6.0. I followed the installation directions for Tools->Options->Directories. I added /libpath to the project link options.

I added ice.lib to the Object/Library Modules of Project Settings.

What am I missing?

Thanks,
Mark
__________________
Mark E. Wilson
Lead Programmer/Analyst
Omega EP Project
Laboratory for Laser Energetics (www.lle.rochester.edu)
University of Rochester
Rochester, NY 14623
Reply With Quote
  #2 (permalink)  
Old 02-12-2007
mwilson mwilson is offline
Registered User
 
Name: Mark Wilson
Organization: University of Rochester
Project: Omega EP laser
 
Join Date: Jul 2005
Location: Rochester, NY
Posts: 73
I made the build verbose, and got:

Linking...
Start Pass1
Processed /DEFAULTLIB:stlport_vc6_static.lib
Processed /DEFAULTLIB:LIBCMTD
Processed /DEFAULTLIB:OLDNAMES
__________________
Mark E. Wilson
Lead Programmer/Analyst
Omega EP Project
Laboratory for Laser Energetics (www.lle.rochester.edu)
University of Rochester
Rochester, NY 14623
Reply With Quote
  #3 (permalink)  
Old 02-12-2007
beagles's Avatar
beagles beagles is offline
ZeroC Staff
 
Name: Brent Eagles
Organization: ZeroC, Inc
Project: Ice Developer
 
Join Date: Feb 2003
Location: Newfoundland
Posts: 110
You need to change your project's settings to use the dynamic DLL version of the Microsoft Runtime Library. In Project Settings|C/C++|Code Generation, there is a drop down list box under the label "Use run-time library:" that allows you to change this. You should use "Debug Multithreaded DLL" for the "Win32 Debug" configuration and "Multithreaded DLL" for "Win32 Release" configuration.

Cheers,

Brent
Reply With Quote
  #4 (permalink)  
Old 02-13-2007
mwilson mwilson is offline
Registered User
 
Name: Mark Wilson
Organization: University of Rochester
Project: Omega EP laser
 
Join Date: Jul 2005
Location: Rochester, NY
Posts: 73
That worked. Thanks!
__________________
Mark E. Wilson
Lead Programmer/Analyst
Omega EP Project
Laboratory for Laser Energetics (www.lle.rochester.edu)
University of Rochester
Rochester, NY 14623
Reply With Quote
  #5 (permalink)  
Old 02-13-2007
mwilson mwilson is offline
Registered User
 
Name: Mark Wilson
Organization: University of Rochester
Project: Omega EP laser
 
Join Date: Jul 2005
Location: Rochester, NY
Posts: 73
Sigh... Now I get:

c:\ice-3.1.0-vc60\include\stlport\stl\debug\_debug.h(166) : warning C4005: '_STLP_DEBUG_CHECK' : macro redefinition
c:\ice-3.1.0-vc60\include\stlport\stl\_config.h(375) : see previous definition of '_STLP_DEBUG_CHECK'
c:\ice-3.1.0-vc60\include\stlport\stl\debug\_debug.h(167) : warning C4005: '_STLP_DEBUG_DO' : macro redefinition
c:\ice-3.1.0-vc60\include\stlport\stl\_config.h(376) : see previous definition of '_STLP_DEBUG_DO'
c:\ice-3.1.0-vc60\include\stlport\stl\debug\_vector.h(277) : error C2953: 'vector' : template class has already been defined
c:\ice-3.1.0-vc60\include\stlport\stl\debug\_vector.h(277) : see declaration of 'vector'
c:\ice-3.1.0-vc60\include\iceutil\mutex.h(141) : error C2065: 'TryEnterCriticalSection' : undeclared identifier
c:\ice-3.1.0-vc60\include\ice\proxy.h(443) : error C2027: use of undefined type 'Object'
c:\ice-3.1.0-vc60\include\ice\objectf.h(18) : see declaration of 'Object'
c:\ice-3.1.0-vc60\include\ice\proxy.h(443) : error C2039: 'ice_facet' : is not a member of 'ProxyHandle<class Ice::Object>'
Error executing cl.exe.

I set Tools->Options->Directories->Include so that the Ice stl include directory is first...

Sorry for the questions, I'm a vi and make Unix guy forced to work temporarily in the Windows world (gak). Is there a guide at www.zeroc.com for building Windows apps?

Thanks,
Mark
__________________
Mark E. Wilson
Lead Programmer/Analyst
Omega EP Project
Laboratory for Laser Energetics (www.lle.rochester.edu)
University of Rochester
Rochester, NY 14623
Reply With Quote
  #6 (permalink)  
Old 02-13-2007
beagles's Avatar
beagles beagles is offline
ZeroC Staff
 
Name: Brent Eagles
Organization: ZeroC, Inc
Project: Ice Developer
 
Join Date: Feb 2003
Location: Newfoundland
Posts: 110
Perhaps it's an include order problem? If you do a search for "_STLP_DEBUG_CHECK" in this message board you get a few hits where people have had similar or related problems.

With respect to a guide for creating Windows apps, I recommend looking at the Ice MFC demo. You might also consider checking out the "Integrating Ice with a GUI" articles in the ZeroC newsletter.
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
Purify Link error joel vennin Help Center 5 08-07-2006 05:36 AM
Ice Php 1.0.2 link error fengxb Help Center 12 03-09-2004 01:08 AM
dynamic link error diddek Bug Reports 2 02-18-2004 04:16 PM
link error: error LNK2001: unresolved external symbol __imp___assert gmueckl Help Center 2 09-03-2003 03:49 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:42 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.