| delorie.com/archives/browse.cgi | search |
| X-Authentication-Warning: | delorie.com: mail set sender to djgpp-bounces using -f |
| From: | "Fausto Arinos Barbuto" <fbarbuto2002 DOT no AT w1 DOT ca DOT vip DOT scd DOT yahoo DOT com> |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Linking libraries |
| Date: | Fri, 17 Dec 2004 10:26:30 -0700 |
| Lines: | 28 |
| Message-ID: | <32gj6cF3mhujqU1@individual.net> |
| X-Trace: | individual.net RO+aGOSiPPFZYdj/zQmxoAQ3mptSPf/ItjT3q0Hdyt1CChmAQN |
| X-Priority: | 3 |
| X-MSMail-Priority: | Normal |
| X-Newsreader: | Microsoft Outlook Express 6.00.2800.1478 |
| X-MimeOLE: | Produced By Microsoft MimeOLE V6.00.2800.1478 |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
Hi All
This question has been put here a thousand times I'm sure, but
here I go again...
I have compiled a 3rd-party arbitrary precision package called
Apfloat into a library apfloat.a and moved it to \DJGPP\LIB.
But I'm unable to compile and link a test code with it from a
command prompt window, as I get an error message saying
"No such file or directory (ENOENT)" -- and it refers to apfloat.a.
But if I compile the code from within RHIDE, a valid and functional
executable is created. It seems that I am not using the correct
compilation command or directive options. I was using:
gcc -o test.exe test.c -l apfloat.a
gcc -c test.c
gcc test.o apfloat.a -o test.exe
but these obviously didn't work. Other programs that don't use
apfloat compile and run smoothly. Can anyone help? Thanks!
---Fausto
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |