Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
C++ under Linux
Name: Syukri Date: February 4, 2001 at 09:37:12 Pacific
Comment:
I have installed Linux Redhat 7.0.. the problem is how to use g++ (C++ compiler)? I compiled a C++ file and a file, a.out was created. The problem is when I type 'a.out', the prompt didn't run the program but printed "bash command"? What's wrong? Is there something that I don't know? HELP! HELP!
Name: opid Date: February 4, 2001 at 11:58:23 Pacific
Reply:
hello. I asked this same question a couple of days back and it's been answered. just scroll your screen downwards a little bit and you'll see the topic" linux and the C++ compiler" Thre the answer lies.
Opid
0
Response Number 2
Name: Blair Date: February 6, 2001 at 23:41:06 Pacific
Reply:
A link you should read:
http://www.armed.net/how/pg002672.htm
a.out vs. elf is like vi vs. emacs, or kde vs. gnome. Use what works for u.
0
Response Number 3
Name: Kerim BASOL Date: February 21, 2001 at 05:32:36 Pacific
Reply:
If you want to run your command from your path you must use "./" before the command like this:
$ ./a.out
Compiling: _________________ $ g++ myprog.cc $ ./a.out Hello, World $ _ ----------------- OR you can change your output name _________________ $ g++ myprog.cc -o youroutput $ ./youroutput Hello, World $ You can use lots of parameters with GNU Compiler you can learn more parameter from command line just type
Summary: Hi, I bought a Linksys etherfast 10/100 lan card, it says on the box that it works under linux but when I try to compile the modules so that I can install it in linux the compilation process fails,to ...