-
C++ Compiler in Bash
Could somebody please inform me on how the C++ compiler in bash shell works for Knoppix 3.3? I'm currently only running Linux from the bootable CD. I know the command g++ <and filename.C>, but this only starts the debugger from the look of things. However, what command actually starts running the compiler?
Cheers,
Danny
-
Junior Member
registered user
i think you are on the right track here..
this is what you have to do..
first, save your source code file with extension.. .cpp (ie. hello.cpp)
next, to compile your program, type:
c++ hello.cpp -o hello <enter>
and that will compile the code and output the file to hello
then to run the program, type:
./hello <enter>
!!!!!!!!!!! GOOD LUCK !
-
Senior Member
registered user
agreeing mostly, but the common extension on linux is .cc - not .cpp (or .c).
.c are c-Files for gcc (gcc your.c -o your)
-
Thank you for the Help. I'll now give it a try.
Danny
-
Senior Member
registered user
and normally it's g++ - the gnu-c++-compiler.
Similar Threads
-
By d00m3d in forum Knoppix DVD
Replies: 0
Last Post: 08-18-2005, 03:40 AM
-
By someuser77 in forum General Support
Replies: 4
Last Post: 08-12-2005, 06:38 PM
-
By giano87 in forum General Support
Replies: 2
Last Post: 10-19-2004, 02:34 AM
-
By Ralf79 in forum General Support
Replies: 0
Last Post: 11-26-2003, 09:34 PM
-
By Rookie in forum General Support
Replies: 3
Last Post: 10-11-2003, 11:30 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules

Intel Core i7-9700 Octa-Core 3 GHz Desktop Processor LGA 1151
$79.99

Intel Core i7-4770 3.40GHz Quad Core SR149 LGA 1150 CPU Processor tested
$35.00

INTEL CORE I9-10940X X-SERIES PROCESSOR | 3.30GHZ | SRGSH
$179.99

Intel Core i5-13500 2.5GHz/4.8GHz Boost 14-Core SRMBM LGA1700 Desktop Processor
$165.00

AMD Ryzen 5 5500 Processor ( read Description)
$59.00

Intel Core i7-3770K 3.5 GHz Processor
$39.00

Intel Core i5-12500T SRL5W 2GHz 18MB 6 Core Socket LGA1700 Desktop CPU Processor
$114.99

Intel i7-8700 Coffee Lake 3.2GHz 6-Core Max Turbo 4.6GHz Processor
$67.99

Lenovo ThinkCentre M920s SFF Barebones PC Motherboard PSU DVD No CPU RAM SSD
$27.99

PS5 Over Heating Problem Solver 1.5 Grams Liquid metal thermal paste CPU, GPU
$15.99