Taran Kaur wrote:

Hello,
I am a new Linux 9.0 user and i have tried "./a.out" to execute my files but it says "command not found."
also, I installed all the compilers while installing Linux 9.0 but whenever i try the command "rpm -q <compiler name>" for java or c++, it says " not installed". I am confused... is the compiler for c and c++ the same or different?

1. What is the command that you are using for compiling? 2. To find out which packages provide the gcc C compiler and the g++ CPP compiler use the following command:

rpm -qf `which gcc` `which g++`

(note, I used `backticks` in the above command)

3. Before executing ./a.out, atleast confirm that the file ./a.out is there or not! The output seems pretty obvious - this file is not getting created. Check your compiling command!

- Sandip

--
Sandip Bhattacharya                        http://www.sandipb.net
sandip at puroga.com
Puroga Technologies Pvt. Ltd.
http://www.puroga.com


_______________________________________________ ilugd mailing list [EMAIL PROTECTED] http://frodo.hserus.net/mailman/listinfo/ilugd

Reply via email to