X-Spam-Check-By: sourceware.org Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Subject: RE: How to link with third party libraries using gcc Date: Fri, 29 Jun 2007 11:45:48 -0400 Message-ID: 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" To: X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Content-Transfer-Encoding: 8bit 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/