Results 1 to 2 of 2

Thread: Can gcc compile C++ programs?

  1. #1
    Member Newbie
    Join Date
    Apr 2001
    Posts
    36

    Can gcc compile C++ programs?

    Can I write c++ on linux? and compile it with gcc?
    if so how?
    I tried
    gcc -o myprog myprog.cpp

    but it doesn't seem to like .cpp

  2. #2
    Senior Member Regular Contributor
    Join Date
    Sep 2000
    Location
    Vancouver BC Canada
    Posts
    417

    Re: Can gcc compile C++ programs?

    Use g++

Similar Threads

  1. Fog in programs
    By SeskaPeel in forum OpenGL: Advanced Coding
    Replies: 12
    Last Post: 09-11-2003, 02:20 AM
  2. Replies: 3
    Last Post: 06-26-2002, 01:11 AM
  3. OGL programs in IL?
    By nathahn in forum OpenGL: Advanced Coding
    Replies: 3
    Last Post: 02-15-2002, 02:44 PM
  4. Replies: 2
    Last Post: 01-15-2001, 06:17 PM
  5. How do I get my programs to compile(MSVC 5.0)
    By johnterenceclark in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 07-29-2000, 01:54 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean