Re: How to link with third party libraries using gcc

2007-06-29 Thread Larry Hall (Cygwin)
Bob McConnell wrote: -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Larry Hall (Cygwin) Sent: Friday, June 29, 2007 2:37 PM To: cygwin@cygwin.com Subject: Re: How to link with third party libraries using gcc Bob McConnell wrote: Whether the

Re: How to link with third party libraries using gcc

2007-06-29 Thread Christopher Faylor
On Fri, Jun 29, 2007 at 03:31:14PM -0400, Bob McConnell wrote: >I have attempted to go the other way, with no success. I tried to use >Cygwin B.20 to write some MS-Windows services a few years ago. One was a >simple TCP/IP socket proxy, and I never could get it to talk with the >Service Control Man

RE: How to link with third party libraries using gcc

2007-06-29 Thread Bob McConnell
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Larry Hall (Cygwin) > Sent: Friday, June 29, 2007 2:37 PM > To: cygwin@cygwin.com > Subject: Re: How to link with third party libraries using gcc > > Bob McConnell wrote: &g

Re: How to link with third party libraries using gcc

2007-06-29 Thread Larry Hall (Cygwin)
Bob McConnell wrote: 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 The format of Windows and Cygwin libraries are the same. conv

RE: How to link with third party libraries using gcc

2007-06-29 Thread Bob McConnell
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of km4hr > Sent: Friday, June 29, 2007 11:19 AM > To: cygwin@cygwin.com > Subject: RE: How to link with third party libraries using gcc > > > Dave, > > The librar

RE: How to link with third party libraries using gcc

2007-06-29 Thread Dave Korn
On 29 June 2007 16:19, km4hr wrote: > 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

RE: How to link with third party libraries using gcc

2007-06-29 Thread km4hr
Dave, You're right. I'm not listening. At least not entirely. The only thing I really needed to hear was that this is an "incredibly tricky and unreliable thing ... to do". Thanks for being up front about that! Dave Korn wrote: > > On 29 June 2007 15:26, km4hr wrote: > >> computer. I have n

RE: How to link with third party libraries using gcc

2007-06-29 Thread km4hr
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

RE: How to link with third party libraries using gcc

2007-06-29 Thread Dave Korn
On 29 June 2007 15:26, km4hr wrote: > computer. I have no idea how cygwin does that. But with all the complex > obstacles that the cygwin developers have obviously overcome it's puzzling > to me why something as seemingly ordinary as Windows libraries is so > mystifying. Because they are *win

Re: How to link with third party libraries using gcc

2007-06-29 Thread km4hr
Larry Hall (Cygwin) wrote: > > km4hr wrote: >> Well, I think I'm about at the end of my road. My purpose for trying >> cygwin >> was to see if it could insulate me from having to learn to program on >> Windows. But if I've got to go to MSNBC (or whatever) or google the >> internet >> to figure o

Re: How to link with third party libraries using gcc

2007-06-28 Thread Larry Hall (Cygwin)
km4hr wrote: Well, I think I'm about at the end of my road. My purpose for trying cygwin was to see if it could insulate me from having to learn to program on Windows. But if I've got to go to MSNBC (or whatever) or google the internet to figure out the internals of Windows then that defeats my p

RE: How to link with third party libraries using gcc

2007-06-28 Thread Dave Korn
On 28 June 2007 19:53, km4hr wrote: > Well, I think I'm about at the end of my road. My purpose for trying cygwin > was to see if it could insulate me from having to learn to program on > Windows. But if I've got to go to MSNBC (or whatever) or google the internet > to figure out the internals of

Re: How to link with third party libraries using gcc

2007-06-28 Thread km4hr
Well, I think I'm about at the end of my road. My purpose for trying cygwin was to see if it could insulate me from having to learn to program on Windows. But if I've got to go to MSNBC (or whatever) or google the internet to figure out the internals of Windows then that defeats my purpose. I'm t

Re: How to link with third party libraries using gcc

2007-06-28 Thread Brian Dessent
km4hr wrote: > I got exactly the same errors as I did with the ".lib" files included. > Apparently gcc has no idea what the ".lib" files are. No, it would have said "unable to find library1.lib" if that was the case. > Since I have no comprehesion of "decorations", "toolchains", and "calling > c

Re: How to link with third party libraries using gcc

2007-06-28 Thread Christopher Faylor
On Thu, Jun 28, 2007 at 11:22:24AM -0400, Larry Hall (Cygwin) wrote: > Not at all. But you need to learn a little bit about the platform you're > working with before things will make some sense to you. What is this "learn" thing of which you speak? Why can't this be more like a toaster? I only

Re: How to link with third party libraries using gcc

2007-06-28 Thread Larry Hall (Cygwin)
km4hr wrote: Brian, It sounds like the solution could range from something as simple as including the ".lib" files on the gcc command line on up to complicated stuff I've never heard of like "decorations", "toolchains", and "calling conventions". I tried the simple suggestion. I copied the ".li

Re: How to link with third party libraries using gcc

2007-06-28 Thread km4hr
Brian, It sounds like the solution could range from something as simple as including the ".lib" files on the gcc command line on up to complicated stuff I've never heard of like "decorations", "toolchains", and "calling conventions". I tried the simple suggestion. I copied the ".lib" files to th

Re: How to link with third party libraries using gcc

2007-06-27 Thread Brian Dessent
km4hr wrote: > I thought Windows shared libraries were indentified by a ".dll" extension. > However I have a commercial product installed that has a C programming > interface. It's libraries have a ".lib" extension. I am totally lost as to > how to link my program to these files. A .lib file is j

Re: How to link with third party libraries using gcc

2007-06-27 Thread Larry Hall (Cygwin)
km4hr wrote: I do a fair amount of C programming on Unix but almost none on Windows. I know almost nothing about Windows libraries. I'd be happy if I never had to deal with them at all. But I have a need. I thought Windows shared libraries were indentified by a ".dll" extension. However I have