From: "Emil Evers" Newsgroups: comp.os.msdos.djgpp Subject: PLEASE HELP: novice has problem compiling Date: 5 Oct 1998 12:53:53 GMT Organization: canberra.net.au Lines: 14 Message-ID: <01bdec1f$7f911dc0$a7d03dca@default> NNTP-Posting-Host: news.canberra.net.au X-Newsreader: Microsoft Internet News 4.70.1155 Cache-Post-Path: genie.canberra.net.au!unknown AT dialup230 DOT canberra DOT net DOT au X-Cache: nntpcache 2.3.3b4 (see http://www.nntpcache.org/) To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp I have recently downloaded djgpp and am trying to run a simple program. I wrote the program in emacs, saved it and put it in my djgpp\bin directory. When I try to compile the program in dos (starter.c) with gcc starter.c -o starter.exe -lm I get the message: ld.exe: cannot open -lm :File in wrong format I cannot figure out what this means. I realise this may seem a trivial problem but I'm just beginning. ANY HELP WOULD BE GREATLY APPRECIATED. My email is emil AT mazuma DOT net DOT au