-
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

🔀 Juniper Networks EX2300-C-12P 12× Gigabit PoE+ • 2× 10G SFP+ Compact Switch ⚡
$109.99

Juniper EX2300 12-Port Gigabit PoE+ Managed Network Switch P/N: EX2300-C-12P
$149.99

New Juniper Networks EX3400-48P 48-Port PoE+ 4-Port SFP+ Ethernet Switch Sealed
$466.65

Juniper Networks EX2300-48P 48-Port PoE Gigabit Switch (Renewed)
$345.97

New Sealed Juniper EX4100-F-12P 12x 1GbE PoE 2x 10GbE uplinks 1 Year Warranty
$895.00

Juniper Networks MX204-HW-BASE *BRAND NEW FACTORY SEALED* READ DETAILS
$8199.99

Juniper EX4600-40F-AFO 24-Port Dual PSU Network Switch
$164.98

Juniper Networks EX2300-48P 48-Port Gigabit PoE Managed Ethernet Switch
$79.99

Juniper QFX5100-48S-3AFI 48-Port SFP+ 6 QSFP+ 2x SFP/RJ-45 Management
$249.97

Juniper EX2300 Unclaimed 12-Port Gigabit Switch EX2300-C-12T
$249.99