From: ajschrotenboer AT lycosmail DOT com Newsgroups: comp.os.msdos.djgpp Subject: Re: PLEASE HELP: novice has problem compiling Date: Wed, 07 Oct 1998 16:50:23 GMT Organization: Deja News - The Leader in Internet Discussion Lines: 35 Message-ID: <6vg64f$pfa$1@nnrp1.dejanews.com> References: <01bdec1f$7f911dc0$a7d03dca AT default> NNTP-Posting-Host: 207.74.20.23 X-Article-Creation-Date: Wed Oct 07 16:50:23 1998 GMT X-Http-User-Agent: Mozilla/4.05 [en] (Win95; I ;Nav) X-Http-Proxy: HTTP/1.1 intranet3.westottawa.k12.mi.us (IBM-ICS), 1.0 x4.dejanews.com:80 (Squid/1.1.22) for client 207.74.20.23 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com I don't know if this'l help, but I would suggest that you get RHIDE. This makes writing and compiling programs. Ever written a program in Turbo C++?? If so, the interface will be very familiar. Emacs is a very powerful editor, with many features. Quite frankly, as I understand it, it is not for the weak of heart, or for novices. (I've considered getting it, but so far am quite satisfied by RHIDE.) Also, why do you need to link libm.a??? It's a math lib, but most of its functions are mirrored in libc.a, which is linked in by default. Sorry about any typos, I'm typing this from school, and the position of the keyboard is really weird. In article <01bdec1f$7f911dc0$a7d03dca AT default>, "Emil Evers" wrote: > 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 > -----------== Posted via Deja News, The Discussion Network ==---------- http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own