Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com Message-ID: <3909EC65.AAA36A90@freenet.edmonton.ab.ca> Date: Fri, 28 Apr 2000 20:54:13 +0100 From: eho X-Mailer: Mozilla 4.7 [en] (WinNT; I) X-Accept-Language: en MIME-Version: 1.0 To: cygwin AT sourceware DOT cygnus DOT com Subject: Re: cygwin gcc user library question References: <3909C5CE DOT A4755E4A AT freenet DOT edmonton DOT ab DOT ca> <20000428212113 DOT C5447 AT cygnus DOT com> <3909E7F6 DOT 17AB1D3F AT freenet DOT edmonton DOT ab DOT ca> <20000428214934 DOT A5880 AT cygnus DOT com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Thanks Chris. I think it's the compatibility issues because I tried it under Linux with no problem. I think I had also tried it on other NT using Visualage C++ with no problem. Chris Faylor wrote: > There is no guarantee that you'll be able to mix Microsoft libraries with > gcc libraries. > > There is a guarantee that if you try to use a c++ library that was not > generated with g++ (aka gcc) it definitely will not work. I don't know > if that is the case here or not but I thought I would mention it now in > case that is the next question. > > We're working on compatibility issues so it's possible that the gcc that > comes with the new release will work better but, again, there are no > guarantees. > > Sorry. > > cgf > > On Fri, Apr 28, 2000 at 08:35:18PM +0100, eho wrote: > >Thanks Chris, I used your suggestion and the following are the commands and > >messages: > >bash-2.02$ gcc c/samples/amqsput0.c lib/mqm.Lib -I ./c/include > >//d/CYGWIN~1/H-I586~1/i586-cygwin32/bin/ld: lib/mqm.Lib(MQM.dll): warning: > >ignor > >ing duplicate section `.text' > >//d/CYGWIN~1/H-I586~1/i586-cygwin32/bin/ld: lib/mqm.Lib(MQM.dll): warning: > >ignor > >ing duplicate section `.idata$5' > >//d/CYGWIN~1/H-I586~1/i586-cygwin32/bin/ld: lib/mqm.Lib(MQM.dll): warning: > >ignor > >ing duplicate section `.text' > >//d/CYGWIN~1/H-I586~1/i586-cygwin32/bin/ld: lib/mqm.Lib(MQM.dll): warning: > >ignor > >ing duplicate section `.idata$5' > >//d/CYGWIN~1/H-I586~1/i586-cygwin32/bin/ld: lib/mqm.Lib(MQM.dll): warning: > >ignor > >ing duplicate section `.text' > >//d/CYGWIN~1/H-I586~1/i586-cygwin32/bin/ld: lib/mqm.Lib(MQM.dll): warning: > >ignor > >ing duplicate section `.idata$5' > >//d/CYGWIN~1/H-I586~1/i586-cygwin32/bin/ld: lib/mqm.Lib(MQM.dll): warning: > >ignor > >ing duplicate section `.text' > >//d/CYGWIN~1/H-I586~1/i586-cygwin32/bin/ld: lib/mqm.Lib(MQM.dll): warning: > >ignor > >ing duplicate section `.idata$5' > > > >Then when I tried to run a.exe, I got the following: > >The procedure entry point could not be located in the dynamic link library > >MQM.dll. > > > >Am I missing something here? Thanks > > > >Chris Faylor wrote: > > > >> On Fri, Apr 28, 2000 at 06:09:34PM +0100, eho wrote: > >> >Hi there! I tried to use cygwin gcc to compile and link a c program > >> >under NT. The program uses a library that exists in a lib directory with > >> >a name abc.Lib. But when I specify the GCC command: > >> >gcc xxxxxx.c -labc -L ./lib, I got the ld error cannot open -labc. What > >> >should be the proper way to specify my abc library in the gcc command > >> >under NT? Thanks > >> > >> Cygwin uses the UNIX convention of naming libraries libabc.a, so you'd > >> do something like this: > >> > >> gcc xxxxxx.c -L ./lib -labc > >> > >> or > >> > >> gcc xxxxxx.c lib/libabc.a > >> > >> or > >> > >> gcc xxxxxx.c lib/abc.lib > >> > >> cgf > > -- > Want to unsubscribe from this list? > Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com