thanks
it's working
when I was trying to run it I was typing in the filename instead of ./filename



Erik de Castro Lopo wrote:

On Sat, 02 Oct 2004 10:07:02 +1000
Gareth Smith <[EMAIL PROTECTED]> wrote:



I compile my c++ program to get an a.out, and my a.out won't run.

How can I get my a.out to run under debian ?
I followed the instructions on http://www.debian.org/doc/FAQ/ch-compat.en.html#s-a.out but it still won't work.



That documentation is about something else all together. Ignore it.



can someone help me



Why not give your program a name?

   g++ file.cc -o my_program

If there are say three input files do:

   g++ file1.cc file2.cc file3.cc -o my_program

Then to run it :

   ./my_program

Its also a good habit to turn on warning messages like this:

   g++ -W -Wall -Werror file.cc -o my_program


and so on. Soon you'll need to learn how to write a Makefile :-)

Erik





-- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to