Migration from Win to Linux

From: Alex Neumann (noone_at_here.de)
Date: 06/28/04


Date: Mon, 28 Jun 2004 21:03:31 +0200

Hi,

I have written a C++ program, very small, under Windows.
Normally I work under Linux, but I had to use a Windows machine over the
weekend.
The program does not use anything special, only

#include <iostream>
#include <stdlib.h>
#include "math.h"

I have copied the .cpp files from my Windows machine to my Linux machine
now.
Compiling with g++ 3.3.2-r5 under Gentoo works fine, but when I execute, the
results I get are just wrong, totally wrong. So this is nothing due to
rounding or so, there is no slight difference, it is just totally wrong.

I am not a C++ guru since I usually code in other languages.

What can be the reason for that ?

Since it is few lines of code only (< 200 lines) I can also post it if that
helps...

Thanks !


Quantcast