Message-ID: <003e01c124e2$70258340$0200a8c0@lff> From: "Luis Filipe Fabiani" To: References: <200108140003 DOT UAA12330 AT delorie DOT com> <005601c12455$477bcb80$0200a8c0 AT lff> <001b01c1245f$81ea6600$0200a8c0 AT lff> <997774002 DOT 560704 AT queeg DOT ludd DOT luth DOT se> <004801c124d1$2763c7e0$0200a8c0 AT lff> Subject: Re: Problems with compilation Date: Tue, 14 Aug 2001 13:59:03 -0300 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Reply-To: djgpp AT delorie DOT com Well, just tried the compilation with -lc -lm, but it didn't work out... (on windows) t just worked on Red Hat 7 The gcc version of my Red Hat is 2.96, so I'm not compiling the source code with the same version of gcc... I've noticed that I can only produce correct results when the program is compiled under Red Hat 7 (I've tried with another version of linux - "Conectiva", and it didn't work out) Is it possible that RedHat's gcc compile with a somewhat implicit option that is not enabled on other versions? The main strange thing is that, after the 11th iteration, both programs produce equal results (until the last decimal) and after that, they start to diverge...(as seen on a previous post) Is someone willing to compile/run the program on other platforms?? it's VERY small Thank you Luis Filipe Fabiani ----- Original Message ----- From: "Luis Filipe Fabiani" To: Sent: Tuesday, August 14, 2001 11:55 AM Subject: Re: Problems with compilation > Hi! > ----- Original Message ----- > From: "Martin Str|mberg" > Newsgroups: comp.os.msdos.djgpp > To: > Sent: Tuesday, August 14, 2001 4:26 AM > Subject: Re: Problems with compilation > > > > First, do you use the same versions of gcc on both platforms? > I don't know :( what's the current version of DJGPP's gcc? > > > Second, do you use the same switches to gcc? > Yes, only -lm > > > Third, how do you deduce that one is right and the other is wrong? > > This is acctually a "translation" to C of a MatLab "program" (.m file). So I > can compare the results from there.... > > But as Eli sugested, I will try the "-lc -lm" tags > > Thanks > > > Luis Filipe Fabiani > > >