Thread: Question about linux compiling with GCC

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #3
    Use this: dudeomanodude's Avatar
    Join Date
    Jan 2008
    Location
    Hampton, VA
    Posts
    391
    You have to have gcc installed.

    Remember, file.cpp or file.h are nothing more than "text" files.

    If you're gonna learn linux, you need to learn to compile from the command line.

    Write up a simple "hello world" program and compile it from the command like:
    Code:
    g++ -o program_name source_file.cpp
    After you've familiarized yourself with manually compiling from the command line, learn how to use make.

    BTW: if you really want, you can run Dev C++ just fine under "Wine" for linux. although you'll need wine to run any executables you produce with it.

    All Bloodshed Dev C++ does to compile your projects is use a makefile.
    Last edited by dudeomanodude; 03-07-2008 at 06:40 PM.
    Ubuntu Desktop
    GCC/G++
    Geany (for quick projects)
    Anjuta (for larger things)

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, 11:09 PM
  2. gcc configuration under linux advice needed
    By vart in forum Tech Board
    Replies: 9
    Last Post: 01-10-2007, 02: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