Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 01-29-2007
lhx lhx is offline
Registered User
 
Name: Suhas Chelian
Organization: HRL
Project: Testing
 
Join Date: Jan 2007
Posts: 2
Visual C++ linking problems...issues with Cygwin?

Hi all, downloaded Ice-3.1.1-VC60 and tried to make the Printer program in section 3.3 of the manual.

At first I had to mask Cygwin's link.exe to get VC++'s link.exe to work properlly (which took much head scratching). Now, I run into the following errors:

C:\Program files\Ice-3.1.1-VC60\include\Ice\Config.h(29): Could not find the file unistd.h.
C:\Program files\Ice-3.1.1-VC60\include\stlport\pthread.h(24): Could not find the file /usr/include/pthread.h.
C:\Program files\Ice-3.1.1-VC60\include\IceUtil\Time.h(16): Could not find the file sys/time.h.

...

Printer.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall IceInternal::GCRecMutexInit::GCRecMutexInit(void)" (__imp_??0GCRecMutexInit@IceInternal@@QAE@XZ)
Server.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall IceInternal::GCRecMutexInit::GCRecMutexInit(void)" (__imp_??0GCRecMutexInit@IceInternal@@QAE@XZ)
Printer.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall IceInternal::GCRecMutexInit::~GCRecMutexInit(void) " (__imp_??1GCRecMutexInit@IceInternal@@QAE@XZ)

I modeled the compiler parameters on those in the demo directory (e.g. got /MDd in there) but I suspect it has something to do with the library definitions. Would appreciate it if people would share their hacks around Cygwin/VC++ incompatability.
Reply With Quote
  #2 (permalink)  
Old 01-29-2007
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,781
It appears you are not compiling with Visual C++. Visual C++ doesn't have pthreads or the other include files that are missing. Perhaps you are using gcc with cygwin? If so, this is not a supported compiler/platform combination.
Reply With Quote
  #3 (permalink)  
Old 01-29-2007
lhx lhx is offline
Registered User
 
Name: Suhas Chelian
Organization: HRL
Project: Testing
 
Join Date: Jan 2007
Posts: 2
Reply

I took all cygwin references out of my batch file to start VC++ to no avail...where else could Cygwin be creeping up? Is there anyway of seeing what compiler, linker, etc. is being called?
Reply With Quote
  #4 (permalink)  
Old 01-29-2007
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,781
I'm afraid I can't help you with that, all I know is that this is not Visual C++. Have a look at include/Ice/Config.h. There you'll find:

Code:
#if defined(_WIN32)
#   include <process.h>
#else
#   include <sys/types.h>
#   include <unistd.h>
#endif
Visual C++ defines _WIN32, so no unistd.h would be included if you would use the correct compiler.
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
Can't build ICE 1.5.1 in cygwin dragzhb Help Center 10 11-12-2006 11:50 PM
Linking Problems: Unresolved external symbol Metadragonfire Help Center 2 06-26-2006 09:16 PM
Visual Studio 2005 C# ICE Issues jborg Bug Reports 3 12-23-2005 06:42 PM
Linking IceBox ahartveld Bug Reports 1 03-31-2004 01:50 PM


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