Find the answer to your Linux question:
Results 1 to 3 of 3
I tried to compile a c++ file with g++ compiler using the command Code: g++ filename.cpp -o filename But this is not working out. Could any one help me to ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jul 2005
    Posts
    17

    Compiling C++ files using g++ compiler


    I tried to compile a c++ file with g++ compiler using the command
    Code:
    g++ filename.cpp -o filename
    But this is not working out. Could any one help me to solve the problem.

  2. #2
    Linux Engineer
    Join Date
    Nov 2004
    Location
    home
    Posts
    796
    Please paste what errors and all you get so we know how to help you.

  3. #3
    Linux Newbie
    Join Date
    Jun 2005
    Location
    Dhaka, Bangladesh.
    Posts
    150
    May be you need to install the gcc compiler.
    S. M. Ibrahim
    Registered Linux User # 394440

    Pentium-IV 3.00 Ghz(Cache -2MB, 64 bit), 512 MB RAM , 128 MB agp, 160 GB Hdd (SATA)

  4. $spacer_open
    $spacer_close

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •