Dear all,

I'm getting problems, that never happened under Mandrake 7.2, in running
compiled c++ programs. Let's have an example: the "Hallo world!".

#include <iostream>

int main ()
{
        cout << "Hallo world\n";
        return 0;
}

I write the code under Xemacs, save it, and compile with "g++ Hallo.cpp -o
Hallo"
The compilation works perfectly; I get the Hallo file in my directory, it has
the rigth executable permissions and looks nice. Then I try to execute it with
./Hallo

Nothing happens! I don't get any error message, but simply the command
prompt. Neither if I try under KDE, GNOME, outside XWindows, as normal user or
root. Note that I also tried to include the old version of the header
(iostream.h) and nothing changes.

The same procedure worked (also with much longer and complicated codes) under
Mandrake 7.2; it works perfectly in the office with an old version of Suse; it
works at home under MS-DOS (djgpp + rhide) (sad!). 

I'm using an AMD Athlon 1GHz, and I bought the Mandrake Powerpack 8.0
(italian version) just because I wanted to use the most updated Linux
distribution to learn C++ and other programming languages. I installed Mdk 8.0
on the previous 7.2 partitions without any visible problem, choosing, the first
time, the manual package picking. At last, desperate, I tried to re-install the
power pack choosing the automatic package puicking, becasue I thought I forgot
some important dependencies the first time.

As I didn't find similar problems on many mailing lists (at least with a
keyword search) I hope somebody may have an idea. Sorry for the details, but I
don't need suggestions like "try to execute the program with ./Hallo, instead
of Hallo".

Bye

Fabio

Reply via email to