Thread: compilation prob?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Ireland
    Posts
    8,446
    You either created a C project instead of a C++ one or you have a bad Dev-C++ setup.

    Right-Click the project name on the left-hand side list. Choose Project Options->Files Tab. Select the cpp file and make sure "Compile file as C++" is checked. If you still have the same problem, or it is already checked, go to Tools Menu->Compiler Options->Directories Tab->C++ Includes Tab and tell us what paths it has listed.

    Also, when creating new projects make sure you specify them as C++ on the first dialog screen.
    Originally Posted by brewbuck:
    Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.

  2. #2
    Registered User
    Join Date
    Sep 2005
    Posts
    142
    Quote Originally Posted by Mario F.
    You either created a C project instead of a C++ one or you have a bad Dev-C++ setup.

    Right-Click the project name on the left-hand side list. Choose Project Options->Files Tab. Select the cpp file and make sure "Compile file as C++" is checked. If you still have the same problem, or it is already checked, go to Tools Menu->Compiler Options->Directories Tab->C++ Includes Tab and tell us what paths it has listed.

    Also, when creating new projects make sure you specify them as C++ on the first dialog screen.
    thanks, it's obveously the compiler it's self because i put the code into another compiler and it worked, <fstream> didn't return an error so it woudn't be in C right?
    WhAtHA hell Is GoInG ON

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Deal or No Deal listbox prob
    By kryptkat in forum Windows Programming
    Replies: 5
    Last Post: 03-30-2009, 06:53 PM
  2. Replies: 3
    Last Post: 11-20-2008, 12:31 PM
  3. Compilation units
    By filler_bunny in forum C++ Programming
    Replies: 0
    Last Post: 10-21-2003, 03:57 AM
  4. MS VC++ Crash on compilation
    By Magos in forum A Brief History of Cprogramming.com
    Replies: 10
    Last Post: 08-23-2003, 07:06 PM
  5. malloc problem in SUN in 64-bit compilation
    By ylzhang in forum C Programming
    Replies: 6
    Last Post: 05-31-2003, 11:48 AM