delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/06/29/11:46:42

X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
Subject: RE: How to link with third party libraries using gcc
Date: Fri, 29 Jun 2007 11:45:48 -0400
Message-ID: <FF8482A96323694490C194BABEAC24A0011F2243@Email.cbord.com>
In-Reply-To: <11362016.post@talk.nabble.com>
References: <11331072 DOT post AT talk DOT nabble DOT com> <4682C0EE DOT D7088ADD AT dessent DOT net> <11342161 DOT post AT talk DOT nabble DOT com> <4683D230 DOT 9030705 AT cygwin DOT com> <11348820 DOT post AT talk DOT nabble DOT com> <007801c7b9b6$8d58ec30$2e08a8c0 AT CAM DOT ARTIMI DOT COM> <11362016 DOT post AT talk DOT nabble DOT com>
From: "Bob McConnell" <rvm AT CBORD DOT com>
To: <cygwin AT cygwin DOT com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id l5TFkVRQ018020

> -----Original Message-----
> From: cygwin-owner AT cygwin DOT com 
> [mailto:cygwin-owner AT cygwin DOT com] On Behalf Of km4hr
> Sent: Friday, June 29, 2007 11:19 AM
> To: cygwin AT cygwin DOT com
> Subject: RE: How to link with third party libraries using gcc
> 
> 
> Dave,
> 
> The libraries I'm dealing with provide an C programming 
> interface to an
> industrial control system. The system is a Fisher  DCS 
> (distributed control
> system).  The DCS contains thousands of temperatures, 
> pressures, flowrates,
> etc from processes in our plant. I create programs that access that
> information. My programs analyze the info to evaluate production
> efficiencies, reporting, performance testing, etc.  The 
> Fisher libraries are
> available on Unix,VMS, and Windows. I use the Unix version. 
> But there are
> times when it would be convenient to run the programs on 
> Windows.  I just
> don't want to learn the Windows programming environment. So I was
> experimenting with cygwin to see if there might be some magic 
> that could
> allow the transfer of programs from Unix to Windows easily. 
> 
> I wish there was a Linux version of the Fisher libraries. But 
> the product
> now has "legacy" status and Fisher has no intention of 
> creating a Linux
> version. Fisher became convinced a few years ago that Windows 
> was the "way
> of the future". So much so that they based their entire new 
> product line on
> it. They thought Unix was dead. Now with Linux becoming ever 
> more popular
> the folks at Fisher are paranoid. They don't want to hear the 
> word Linux.
> (If anyone has any idea how to reverse engineer such a 
> library I'd love to
> hear about it!)

Whether the libraries are linked dynamic or static is irrelevant here.
The Windows libraries are stored in a different object format than the
Unix and Cygwin libraries, and probably have different calling
conventions. You can't use MS-Windows libraries without the appropriate
tools, usually that means Visual Studio. Cygwin made no attempt to be
compatible at that level, likely because both the API and calling
conventions are so different.

Have you tried to use them under wine or don't you have a full
MS-Windows application built?

Bob McConnell
N2SPP

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019