X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: "Wolfgang Schlegel" Newsgroups: comp.os.msdos.djgpp Subject: GCC Lib Search Path Date: Wed, 19 Nov 2003 16:31:00 +0100 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Lines: 26 Message-ID: <3fbb8c90$0$11887$9b4e6d93@newsread2.arcor-online.net> Organization: Arcor NNTP-Posting-Date: 19 Nov 2003 16:30:24 MET NNTP-Posting-Host: 145.254.70.218 X-Trace: DXC=Rnm=Lfd_P]<;iAbK4FA[l4Q5U85hF6f;4jW\KbG]kaM8]kI_X=5Kea6UlUZL8_bK8=RG4U09^PIi1>ReN9f@> X-Complaints-To: abuse AT arcor-online DOT net To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hi newsgroup, a problem I can't solve deals with gcc's lib search path. I try the command line gcc test.cpp -o test.exe libm.a and get gcc.exe: libm.a: No such file or directory (ENOENT) The lib exists in c:\djgpp\lib, and if I explicitly type gcc test.cpp -o test.exe c:\djgpp\lib\libm.a it works fine. Options -l and -L don't yield any result too. From the FAQ I believe to know gcc.exe uses an environment variable called LIBRARY_PATH. I set this to the appropiate directory, but gcc didn't find it's libs. I read about the syntax for djgpp.env, had a look on this file, was surprised to see all directory names there seem to be converted to UNIX ( \ to / ), tried to avoid this conversion, and gcc.exe again didn't find it's libs. For the moment I'm out of ideas. Thank you for aid, Wolfgang