From: "Damian Yerrick" 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: 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" 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