From: eplmst AT lu DOT erisoft DOT se (Martin Stromberg) Newsgroups: comp.os.msdos.djgpp Subject: Re: Link problems Date: 21 Jun 2001 14:20:53 GMT Organization: Ericsson Erisoft AB, Sweden Lines: 33 Message-ID: <9gsvs5$gto$1@antares.lu.erisoft.se> References: NNTP-Posting-Host: lws256.lu.erisoft.se X-Newsreader: TIN [version 1.2 PL2] To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Jean-Marc DAUMONT (daumont AT c2i DOT net) wrote: : I try to link a library to produce an EXE file. Here is the command line at : the prompt: : gxx demo.c -o demo.exe -libmidas.a : I get the following error line: : f:/djgpp/bin/ld.exe: cannot find -libmidas.a : collect 2: ld returned 1 exit status : I've defined the PATH and DJGPP variables in the 'variables environment : panel' : I run Win2000. : I've also a problem when I try to run RHIDE. I get the message: 'DJDIR has : not been set .../... ' : When I check the djgpp.env file, I can see that DJDIR is mentioned in it... : Thanks a lot if you help me. You can answer in FRENCH, NORWEGIAN or ENGLISH : in order of preference. French: Il y a une librarie qui s'appelle "libibmidas.a.a"? Peut-etre il y a une librarie qui s'appelle "libmidas.a"? Si c'est comme ca, il faut ecrire "-lmidas" pas "-libmidas.a". Je crois. Svenska: Kan inte norska så du får hålla tillgodo med svenska. Har du ett bibliotek som heter "libibmidas.a.a"? Kanske du har ett som heter "libmidas.a". Om det är så måste du skriva ""-lmidas" och inte "-libmidas.a". Tror jag. English: Left as an exercise for the other readers. Right, MartinS