X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: "Rod Pemberton" Newsgroups: comp.os.msdos.djgpp References: <43cbed4a_1 AT x-privat DOT org> <43cc0ae2_3 AT x-privat DOT org> <200601162127 DOT k0GLRpSm002776 AT envy DOT delorie DOT com> <43cc161e_3 AT x-privat DOT org> <43cc286a_1 AT x-privat DOT org> <43cd4cac$1_2 AT x-privat DOT org> Subject: Re: Reading the TSC Lines: 74 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 X-IWN-Posted-By: [68.60.59.250] Tue Jan 17 15:55:44 2006 Message-ID: X-Complaints-To: abuse AT eli DOT net X-Trace: 52616e646f6d49563ff2ca8fb2819af7e92cc8c042c4cc9f8c2dc6e26e754e70598b11aba2e468cb10ab67caf1055ccee050b83a42b36a70ad2888e5c945406b3b75d758c6e74a218592786fe5b8d1fbc8742165c2afb099a8925741ce6d93abe791e6ea76e87494fc9a6aee6474902c0b33b9a502c49d28e62f73c1ce6232629471c8bd9f1265eba6d1fcd352c4dd1b X-Abuse-Info: Please be sure to forward ALL headers so that we may process your complaint properly. NNTP-Posting-Date: Tue, 17 Jan 2006 23:07:46 UTC Date: Tue, 17 Jan 2006 23:14:59 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com "Cristiano" wrote in message news:43cd4cac$1_2 AT x-privat DOT org... > Rod Pemberton wrote: > > "Cristiano" wrote in message > > news:43cc286a_1 AT x-privat DOT org... > >> Rod Pemberton wrote: > >>> "Cristiano" wrote in message > >>> news:43cc161e_3 AT x-privat DOT org... > >>>> DJ Delorie wrote: > >>>>> Try -march=486 > >>>> > >>>> I get: Invalid option 'arch=486'. :-( > >>>> > >>>> Cristiano > >>> > >>> -march=i486 > >> > >> I downloaded a more updated version from here: > >> http://www.delorie.com/djgpp/dl/ofc/ > >> but now I get: unrecognized option '--traditional-format'. > >> > >> Is it really impossible to compile that 4-line program? > >> > >> Cristiano > > > > Yes, if DJGPP is setup properly, it should compile easily. > > If I call the file 'tst.c': > > > > gcc -o tst.exe tst.c > > With that line I get: > C:/djgpp/tmp\cccaaaaa: Assembler messages: > C:/djgpp/tmp\cccaaaaa:26: Error: no such 386 instruction. 'rdtsc' > (notice the forward and back slashes). > > > It shouldn't need '-march=i486' or '-mcpu=i486' ... > > With > gcc -o tst.exe tst.c -mcpu=i486 > I get: > cc1.exe: Invalid option 'cpu=i486'. > > > Are the settings in DJGPP.ENV setup properly? > > I don't understand anything in that file (the syntax is very "strange" to > me), but it is the original file. > There are many '>' like in: > DJDIR=%:/>DJGPP% > is that correct? > > > How about the DOS > > variable 'DJGPP'? There should be a 'SET DJGPP=C:\DJGPP\DJGPP.ENV' > > or similar in your autoexec.bat. Do your DOS paths point to > > C:\DJGPP\BIN or similar? > > They are both defined in the autoexec.bat, but DJGPP is defined with the '/' > insted of '\' (as you wrote). > > Thank you for the help > Cristiano That is correct for DJDIR. Ignore the rest of DJGPP.ENV. Try changing to '\' backslashes. If you still can't get it to compile, what are the results of: gcc -v Rod