Question about linux compiling with GCC

This is a discussion on Question about linux compiling with GCC within the C++ Programming forums, part of the General Programming Boards category; !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! IT WORKED!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!! pico project1.cpp write simple hello world program, save , exit g++ -o helloworld.c++ project1.cpp ls ./helloworld.c++ ...

  1. #16
    Registered User
    Join Date
    Mar 2008
    Location
    NE Washinton
    Posts
    38
    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! IT WORKED!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!

    pico project1.cpp

    write simple hello world program, save , exit

    g++ -o helloworld.c++ project1.cpp

    ls

    ./helloworld.c++

    IT WORKED

  2. #17
    Use this: dudeomanodude's Avatar
    Join Date
    Jan 2008
    Location
    Hampton, VA
    Posts
    391
    Quote Originally Posted by elsheepo View Post
    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! IT WORKED!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!

    pico project1.cpp

    write simple hello world program, save , exit

    g++ -o helloworld.c++ project1.cpp

    ls

    ./helloworld.c++

    IT WORKED
    yay! I share your excitement.

    now, make sure make is installed, and figure that out.
    Ubuntu Desktop
    GCC/G++
    Geany (for quick projects)
    Anjuta (for larger things)

  3. #18
    Registered User
    Join Date
    Mar 2008
    Location
    NE Washinton
    Posts
    38
    Thank you both!!!! Man i hope i can be as 1337 coders are you two one day

  4. #19
    Use this: dudeomanodude's Avatar
    Join Date
    Jan 2008
    Location
    Hampton, VA
    Posts
    391
    Quote Originally Posted by elsheepo View Post
    Thank you both!!!! Man i hope i can be as 1337 coders are you two one day
    I'm not a tough act to beat, but tabstop is really good!
    Ubuntu Desktop
    GCC/G++
    Geany (for quick projects)
    Anjuta (for larger things)

  5. #20
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,185
    Quote Originally Posted by dudeomanodude View Post
    I'm not a tough act to beat, but tabstop is really good!
    I'd quote you in my sig but I'd rather quote you in my annual review.

  6. #21
    Registered User
    Join Date
    Mar 2008
    Location
    NE Washinton
    Posts
    38
    Quote Originally Posted by dudeomanodude View Post
    now, make sure make is installed, and figure that out.
    what exactly is "make" .... make shure "make" is installed? and figure that (that = make) out? did i read that right? im confused.

  7. #22
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,185
    Quote Originally Posted by elsheepo View Post
    what exactly is "make" .... make shure "make" is installed? and figure that (that = make) out? did i read that right? im confused.
    make is a tool for automated compilation, especially useful when you find yourself with multiple source files, since it will only compile the pieces that need to be recompiled. (Bloodshed-Dev C++ used it behind the scenes if you ever created a "project" in that IDE.)

  8. #23
    coder
    Join Date
    Feb 2008
    Posts
    127
    hi elsheepo
    I am using Kdevelop and I'm working very fine with that tool.
    Anyway I'd suggest you to practice with gcc using the terminal before, expecially if you write simple programs.

    Kdevelop uses gcc and make itself and makes all stuff easy for you, but it also generates a lot of configuration files once you create a new project, which will probably confuse your work, so it is useful only for large projects.

    If you don't create a new project, but just new files, its editor is great to use, in my opinion.

  9. #24
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    20,973
    i just found through my KDE Desktop that it comes with a tool KDevelop it says something about geany when i scroll over it. could this be the tool i need?
    KDevelop should be fine. There is also Anjuta, Code::Blocks, Eclipse and Netbeans, among others. If you want to use the same IDE on both Windows and Linux, Code::Blocks would be a good choice. Eclipse and Netbeans are also cross platform, but they are written in Java so you would need to install Java to use them.

    Alltho i would still love to learn how to do it via command line
    tabstop has already given you a starting point. You can read the manual at the GCC homepage for more information, but it can be a little intimidating if you are really new to all this.
    C + C++ Compiler: MinGW port of GCC
    Version Control System: Bazaar

    Look up a C++ Reference and learn How To Ask Questions The Smart Way

Page 2 of 2 FirstFirst 12
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Run time differences in Linux gcc versions
    By circuitbreaker in forum C++ Programming
    Replies: 7
    Last Post: 02-14-2008, 10:09 PM
  2. gcc configuration under linux advice needed
    By vart in forum Tech Board
    Replies: 9
    Last Post: 01-10-2007, 01:46 PM
  3. problems compiling in gcc
    By ra_mer in forum C Programming
    Replies: 6
    Last Post: 09-04-2006, 09:13 PM
  4. Question about Linux Firewall
    By naruto in forum Linux Programming
    Replies: 6
    Last Post: 07-25-2004, 12:39 PM
  5. Question about LINUX
    By River21 in forum A Brief History of Cprogramming.com
    Replies: 0
    Last Post: 09-17-2001, 06:39 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21