Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 07-20-2003
jxie jxie is offline
Registered User
 
 
Join Date: Jul 2003
Posts: 3
problem to build demos with VC 6.0

Hi,there:

When I build the ICE demo such as Latency example with VC6.0, it failed,it can not resolve external symbol while linking. But it works with Visual Studio .net.

I checked the project setting: the iced.lib iceutild.lib are there and in the menu tool\option directories tab I set the lib path to the ice lib path,did I miss anything else? Compiling was ok.

The error messages look like this:

Client.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall IceProxy::Ice::Object::ice_ping(class std::map<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,struct std::less<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > >,class std::allocator<class std::basic_string<char,struct std::char
.....

Latency.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: bool __thiscall IceProxy::Ice::Object::ice_isA(class std::basic_string<char,struct std::char_traits<char>,class
.......

Thanks!
Reply With Quote
  #2 (permalink)  
Old 07-20-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
This looks to me as if STLport is either not found during compilation, linking, or execution:
  • Make sure that during compilation you have STLport's include/stlport directory in your INCLUDE path. (Note: Just using STLport's include directory won't work.)
  • Make sure that the linker can find the STLport library.
  • Make sure that the STLport DLL is in your PATH.

Hope this helps!
Reply With Quote
  #3 (permalink)  
Old 07-20-2003
jxie jxie is offline
Registered User
 
 
Join Date: Jul 2003
Posts: 3
I tried as you said,it still can not work out. I am wondering why it works in Visual studio.net, I didn't install STLport at that time,but it works fine. It's kind of wierd,but anyway I can build it in visual studio.net.

Thanks!
Reply With Quote
  #4 (permalink)  
Old 07-20-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
Well, with Visual C++ .NET, you don't need STLport. You only need STLport with Visual C++ 6.0.

Perhaps you mixed Ice libraries compiled with Visual C++ .NET with code compiled with Visual C++ 6.0?
Reply With Quote
  #5 (permalink)  
Old 07-20-2003
jxie jxie is offline
Registered User
 
 
Join Date: Jul 2003
Posts: 3
Yeah you might make the point. The iced.lib and iceutild.lib I used is from the binary package which is download from your web site,I think it is build in visual studio.net.

Thanks!
Reply With Quote
  #6 (permalink)  
Old 07-20-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
That's correct. You cannot use the binary package with Visual C++ 6.0. You must compile Ice with Visual C++ 6.0 and STLport.
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
IcePy-2.0.0 build problem on AIX zephyr007 Help Center 2 01-16-2005 05:11 AM
Unable to build demoj using supplied build.xml files vsonnathi Bug Reports 1 10-21-2004 12:34 PM
Patch for Windows IcePackRegistry build problem (Ice 1.5.x) benoit Patches 0 08-25-2004 09:21 AM
Demos on ICE shantanu_k06 Comments 4 05-04-2004 01:06 PM
Build problem on Linux Jeff Holle Help Center 5 08-13-2003 12:21 AM


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