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
  •  


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

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 picture

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 picture

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 picture

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

$165.00



AMD Ryzen 5 5500 Processor ( read Description) picture

AMD Ryzen 5 5500 Processor ( read Description)

$59.00



Intel Core i7-3770K 3.5 GHz Processor picture

Intel Core i7-3770K 3.5 GHz Processor

$39.00



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

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 picture

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 picture

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 picture

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

$15.99