cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1999/11/26/00:05:38

From: "Damian Yerrick" <NOSP AT Musenet@pineight.8m.com>
Newsgroups: comp.os.msdos.djgpp
References: <943568106 DOT 404219 AT news1>
Subject: Re: Linking to a library, while compiling
Lines: 20
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6600
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
Message-ID: <cCn%3.1053$l_6.24678@dfiatx1-snr1.gtei.net>
X-Trace: /Kkf2L36UIyIspRkJpZ90YejBbSxdpxZzbcN4yBfdran9DIlRCSrkwbRJYi8+UM+rHKMM/nch9rV!n/fVQ+oHr9qk6k95zIDL/TDPY2IXeyZfvEh/GZNTMtp0BlV9E/lMUy9qAX7xOFZKWDWyKN8=
X-Complaints-To: abuse AT gte DOT net
X-Abuse-Info: Please be sure to forward a copy of ALL headers
X-Abuse-Info: Otherwise we will be unable to process your complaint properly
NNTP-Posting-Date: Fri, 26 Nov 1999 04:01:12 GMT
Distribution: world
Date: Fri, 26 Nov 1999 04:01:12 GMT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

"samidee" <djseblive AT infonie DOT fr> wrote:

> I'm very new in Djgpp stuff, and i have a problem while compiling. I need
to
> indicate Djgpp where a library i need to include is, but, after many
tries,
> it's not able to find it.
> Here what i've tried ( the library i need is in the c:\mysql\lib\debug\
> directory and is called mysqlclient.lib)
>
> gcc -o test.exe test.c -L c:\mysql\lib\debug - l mysqlclient.lib

DJGPP is based on GNU's Unix C/C++ compiler GCC.
GCC's linker does not accept .lib format libraries. You'll have to
get the source code, port it to GCC, and make a .a format library.


Damian Yerrick


- Raw text -


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