Invalid Compiler

This is a discussion on Invalid Compiler within the C++ Programming forums, part of the General Programming Boards category; Hiya everyone, this is my first post. I found cprogramming.com earlier this evening, and as I've wanted to start programming ...

  1. #1
    Registered User
    Join Date
    Sep 2008
    Posts
    5

    Invalid Compiler

    Hiya everyone, this is my first post. I found cprogramming.com earlier this evening, and as I've wanted to start programming again for some time now (been programming some Java earlier), I thought this would be a good time to start learning C++. However, as I downloaded Code::Blocks and tried running the first "Hello World"-program, the first thing I see is an error, namely:

    "Titel - Debug" uses an invalid compiler. Skipping...
    Nothing to be done.

    Why did this error occur and what can I do to correct it? The program I installed was Code::Blocks as said, with all features and mingw included. Any help would be appreciated, so that I can start coding again! Feel free to hand some tips for better IDE's or anything too!

    Thanks

  2. #2
    Registered User
    Join Date
    Mar 2007
    Posts
    416
    I've found codeblock 8.02 to be kind of annoying. It has better controls than 1.0 but definitely takes more fiddelling (sp) to get it to work in most cases. Try the CB 1.0 version instead. It's a little easier for starting I think. There's also Devcpp.

    Code::Blocks 1.0
    Dev-C++

    EDIT: guess I could mention the Visual Basic 2008 Express Edition too. Although, from my experience I have not found a way to make a resource file in the express edition (i don't think it's even possible, but i've been wrong before).
    VB Express 2008
    Last edited by scwizzo; 09-26-2008 at 07:15 PM.

  3. #3
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,494
    Are you sure you downloaded the larger "Compiler+IDE" file, and not the smaller "IDE only" file?
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  4. #4
    Registered User
    Join Date
    Sep 2008
    Posts
    5
    Yeah, it's the one with the mingw-setup added, so I think I have.. I guess I'll try out one of the others, if you don't have any better suggestions. I havent solved the problem yet.

  5. #5
    Its hard... But im here swgh's Avatar
    Join Date
    Apr 2005
    Location
    England
    Posts
    1,475
    I would not recomend Dev-C++ its old and hasnt been updated for a few years, although the 4.992 is the best version.

    Id go with Visual C++ Express, its the most up to date compiler around for free, and the most standards compliant
    I'm just trying to be a better person - My Name Is Earl

  6. #6
    Registered User
    Join Date
    Sep 2008
    Posts
    5
    As I'm going to start studying Java again in a month or so, is there an IDE that has features for both Java and C++ coding?

  7. #7
    Registered User
    Join Date
    Oct 2001
    Posts
    2,129
    maybe the compiler's bin directory is not in the PATH.

  8. #8
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,893
    Quote Originally Posted by jtunhag View Post
    As I'm going to start studying Java again in a month or so, is there an IDE that has features for both Java and C++ coding?
    Eclipse, although the C Development Tools are not exactly the best IDE around.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  9. #9
    Registered User
    Join Date
    Sep 2008
    Posts
    5
    Ok, so I downloaded the Visual C++ Express earlier today, and thought I'd try it out now. But what do I get if not more problems? VC looks like a neat program, but I can't see why they have to make it so hard just to start off! When I try one of the example (VERY basic) programs, it wont work because I lack this and that, there are failed builds and so on - I mean, what the hell? I just want my single one file to be built, just as in the example, but can't get it to work. I'm not to good at this stuff, as you see, so what am I to do, and what is it that I'm missing? Help me start off, please!

  10. #10
    Registered User
    Join Date
    Jan 2007
    Posts
    89
    "Titel - Debug" uses an invalid compiler. Skipping...
    Nothing to be done.
    You need to go to settings->compiler and debugger
    and choose which ever compiler you downloaded with code::blocks and then click "set as default"
    that should take care of the problem.

    http://forums.codeblocks.org/index.p...ic,6902.0.html
    Last edited by eaane74; 09-28-2008 at 06:32 PM. Reason: added link

  11. #11
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,543
    Quote Originally Posted by jtunhag View Post
    Ok, so I downloaded the Visual C++ Express earlier today, and thought I'd try it out now. But what do I get if not more problems? VC looks like a neat program, but I can't see why they have to make it so hard just to start off! When I try one of the example (VERY basic) programs, it wont work because I lack this and that, there are failed builds and so on - I mean, what the hell? I just want my single one file to be built, just as in the example, but can't get it to work. I'm not to good at this stuff, as you see, so what am I to do, and what is it that I'm missing? Help me start off, please!
    Create a project first (file -> new -> project).
    Then right-click in the file browser and select add existing file. Add your source file.
    You can then compile and run. Simple.
    There's also a help file, isn't there?
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  12. #12
    Registered User
    Join Date
    Sep 2008
    Posts
    5
    Well, it might seem that I'm a noob, but that I know..

    Thanks for the help on CodeBlocks, eaane74, it was just what I was looking for in the first place!

    Anyway, I'm on my way now, and have been able to run a few programs. Thanks for the input and help from everyone!

  13. #13
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,543
    Oh and, what examples did you try?
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  14. #14
    Registered User
    Join Date
    Oct 2006
    Posts
    2,360
    Quote Originally Posted by jtunhag View Post
    As I'm going to start studying Java again in a month or so, is there an IDE that has features for both Java and C++ coding?
    I would check out NetBeans. One of my friends uses it and seems to really like it, although I have never used it myself.

  15. #15
    Registered User
    Join Date
    Mar 2010
    Posts
    1
    I see it's an old topic, but today I had the same problem with code::blocks 8.02 mingw.
    I did not see here the exact answer, so I wish to write it.
    It's very simple. The problem is with the path. go to: settings/compiler and debugger/Toolchain executables
    Select the Compiler's intallation direectory properly. Like ...\CodeBlocks\MinGW

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

Similar Threads

  1. Assignment output help
    By Taka in forum C Programming
    Replies: 13
    Last Post: 09-23-2006, 11:40 PM
  2. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 06:39 AM
  3. OpenScript2.0 Compiler
    By jverkoey in forum C++ Programming
    Replies: 3
    Last Post: 10-30-2003, 12:52 PM
  4. Compiler Design... Anyone That Can Help!
    By ComputerNerd888 in forum C++ Programming
    Replies: 3
    Last Post: 09-27-2003, 09:48 AM
  5. Comile problem using latest Dev C++ Compiler
    By shiny_dico_ball in forum C++ Programming
    Replies: 6
    Last Post: 06-06-2003, 05:32 PM

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