Results 1 to 5 of 5

Thread: C++ Compiler in Bash

  1. #1
    Junior Member
    Join Date
    Sep 2004
    Posts
    4

    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

  2. #2
    Junior Member registered user
    Join Date
    Jul 2004
    Location
    Hollywood, Florida
    Posts
    18
    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 !

  3. #3
    Senior Member registered user
    Join Date
    Mar 2004
    Location
    Berlin
    Posts
    436
    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)

  4. #4
    Junior Member
    Join Date
    Sep 2004
    Posts
    4
    Thank you for the Help. I'll now give it a try.

    Danny

  5. #5
    Senior Member registered user
    Join Date
    Mar 2004
    Location
    Berlin
    Posts
    436
    and normally it's g++ - the gnu-c++-compiler.

Similar Threads

  1. Strange compiler symlinks in DVD
    By d00m3d in forum Knoppix DVD
    Replies: 0
    Last Post: 08-18-2005, 03:40 AM
  2. is there a gui c compiler on knoppix?
    By someuser77 in forum General Support
    Replies: 4
    Last Post: 08-12-2005, 06:38 PM
  3. C compiler on Knoppix
    By giano87 in forum General Support
    Replies: 2
    Last Post: 10-19-2004, 02:34 AM
  4. CC-Compiler & apt-get
    By Ralf79 in forum General Support
    Replies: 0
    Last Post: 11-26-2003, 09:34 PM
  5. Where do i find C++ compiler?
    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
  •  


HP ProLiant MicroServer Gen8 G1610T @2.3 GHz, 16GB, 712317-001 NO HDD/OS picture

HP ProLiant MicroServer Gen8 G1610T @2.3 GHz, 16GB, 712317-001 NO HDD/OS

$199.00



Nasuni NF-50 Supermicro Server, Atom CPU C2558, @ 2.40GHz, 8GB RAM-No HDD/OS/AC picture

Nasuni NF-50 Supermicro Server, Atom CPU C2558, @ 2.40GHz, 8GB RAM-No HDD/OS/AC

$250.00



Supermicro 505-2   Server picture

Supermicro 505-2 Server

$280.00



Supermicro E200-8D Barebones Server Chassis Xeon D-1528 X10SDV-6C-TLN4F 2x10GbE picture

Supermicro E200-8D Barebones Server Chassis Xeon D-1528 X10SDV-6C-TLN4F 2x10GbE

$445.00



New Barebones Supermicro 5019D Server, 4C/8T Xeon D-2123T, 1U Rackmountable, 10G picture

New Barebones Supermicro 5019D Server, 4C/8T Xeon D-2123T, 1U Rackmountable, 10G

$449.99



Supermicro 2U X10DRU-i 2x E5-2680 v3 2.5ghz 32gb Ram  240gb SSD 2x GPU *READ* picture

Supermicro 2U X10DRU-i 2x E5-2680 v3 2.5ghz 32gb Ram 240gb SSD 2x GPU *READ*

$369.99



SuperMicro 4U CSE 847 36 Bay LFF Barebone 2x 1280W w/ 2x Bays 2.5 Rear w/Trays picture

SuperMicro 4U CSE 847 36 Bay LFF Barebone 2x 1280W w/ 2x Bays 2.5 Rear w/Trays

$499.99



1U Edge Firewall Server X11SCW-F Xeon E-2174G 0 RAM M.2 NVME 3x PCI-e 2x PSU   X picture

1U Edge Firewall Server X11SCW-F Xeon E-2174G 0 RAM M.2 NVME 3x PCI-e 2x PSU X

$175.00



Supermicro 1U Network Server Appliance 16GB RAM 800GB SSD 6 LAN Ports Powers On picture

Supermicro 1U Network Server Appliance 16GB RAM 800GB SSD 6 LAN Ports Powers On

$450.00



Supermicro CSE-937 3U Storage Chassis No CPU No HDD No Ram Tested & Reset picture

Supermicro CSE-937 3U Storage Chassis No CPU No HDD No Ram Tested & Reset

$129.99