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
  •  


GIGABYTE A520M DS3H AC AMD AM4 Motherboard mATX picture

GIGABYTE A520M DS3H AC AMD AM4 Motherboard mATX

$59.99



MSI PRO Z790-P WIFI DDR4 LGA 1700 Intel Z790 SATA 6Gb/s DDR4 ATX Motherboard picture

MSI PRO Z790-P WIFI DDR4 LGA 1700 Intel Z790 SATA 6Gb/s DDR4 ATX Motherboard

$163.49



Intel H310 LGA1151 8-9th Gen DDR4 M.2 NVMe mATX Motherboard IO Shield Battery picture

Intel H310 LGA1151 8-9th Gen DDR4 M.2 NVMe mATX Motherboard IO Shield Battery

$54.99



CPU-RAM-MOBO COMBO-  32gb DDR4 3600MHz, i5 CPU, Asus Prime Motherboard picture

CPU-RAM-MOBO COMBO- 32gb DDR4 3600MHz, i5 CPU, Asus Prime Motherboard

$370.00



GIGABYTE B365 HD3 LGA1151 Intel 9th Gen motherboard picture

GIGABYTE B365 HD3 LGA1151 Intel 9th Gen motherboard

$59.99



⁠Intel H81 Motherboard M.2 NVMe LGA 1150 mATX w/ IO Shield (Random Slot Color)⁠ picture

⁠Intel H81 Motherboard M.2 NVMe LGA 1150 mATX w/ IO Shield (Random Slot Color)⁠

$29.90



ASUS PRIME Z370-A II LGA 1151 Intel Z370 DDR4 DIMM USB3.1 DVI  ATX RGB picture

ASUS PRIME Z370-A II LGA 1151 Intel Z370 DDR4 DIMM USB3.1 DVI ATX RGB

$69.99



MSI B550M PRO-VDH Micro-ATX Motherboard - AMD AM4, Ryzen 5000/4000/3000 Ready, P picture

MSI B550M PRO-VDH Micro-ATX Motherboard - AMD AM4, Ryzen 5000/4000/3000 Ready, P

$101.99



ASUS B85M-G/B85M-G PLUS LGA1150 DDR3 Micro ATX Motherboard HDMI for Inter 4thCPU picture

ASUS B85M-G/B85M-G PLUS LGA1150 DDR3 Micro ATX Motherboard HDMI for Inter 4thCPU

$45.00



ASUS PRIME Z490-V Motherboard Intel Z490 10th gen DDR4 LGA 1200 ATX w/ IO Shield picture

ASUS PRIME Z490-V Motherboard Intel Z490 10th gen DDR4 LGA 1200 ATX w/ IO Shield

$84.99