Code::Blocks
October 31, 2014, 12:56:18 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!
 
   Home   Help Search Login Register  :: WebsiteWiki  
Pages: [1]   Go Down
  Send this topic  |  Print  
Author Topic: Code::Blocks won't let me compile  (Read 16015 times)
osxi
Guest
« on: July 07, 2009, 07:23:27 am »

Windows XP

File>Open>Practice.cpp
Build>Build (nothing happens)
Build>Compile current file (nothing happens)
Build>Build and Run ... (nothing happens

File>Quit Code Blocks

Run Bloodshed Dev C++

File>Open>Practice.cpp

Compile and run (Works great!!!)

I love the way that Code::Blocks looks and everyone told me that it was way better than Dev C++, but if Dev will actually let me do something with it (like compile and run a source file) and Code::Blocks won't, then it's of no use to me.
« Last Edit: July 07, 2009, 07:27:42 am by osxi » Logged
oBFusCATed
Developer
Lives here!
*****
Offline Offline

Posts: 7676


« Reply #1 on: July 07, 2009, 10:09:56 am »

Why don't make a project for the file?
Logged

<debugger plugin maintainer>
(most of the time I ignore long posts)
osxi
Guest
« Reply #2 on: July 07, 2009, 12:38:43 pm »

I tried.  It says "invalid compiler [YOUR ANSWER IS ALREADY THERE. SEARCH THE FORUMS!]... Skipping"  I've tried every compiler under Settings>Compiler and debugger..., and everything says the same thing.  *Sigh*, I'm surprised this hasn't happened to anyone else.
Logged
jens
Administrator
Lives here!
*****
Offline Offline

Posts: 6633



WWW
« Reply #3 on: July 07, 2009, 01:23:49 pm »

Setup the toolchain for the compiler you use correctly, don't forget the Compiler's installation directory (without the bin).

And next time search before you ask questions that have been answered tons of time.
search for "invalid compiler [YOUR ANSWER IS ALREADY THERE. SEARCH THE FORUMS!]... Skipping"

Posts like that (asking quetsions that are not related to C::B or asking questions that have been answered many times before) normally get tlocked or silently deleted.
Logged

Regards

Jens  Debian - nightlies (and release) : http://apt.jenslody.de/ Fedora [18 - 20]- and CentOS/RedHat [5, 6 & 7] - nightlies : http://rpm.jenslody.de/
thomas
Administrator
Lives here!
*****
Offline Offline

Posts: 3938



« Reply #4 on: July 07, 2009, 01:30:41 pm »

I tried.  It says "invalid compiler [YOUR ANSWER IS ALREADY THERE. SEARCH THE FORUMS!]... Skipping"  I've tried every compiler under Settings>Compiler and debugger..., and everything says the same thing.
Well, that error message might give you a good hint. Obviously, if the IDE doesn't know what compiler executable to invoke, it won't do it.
First of all, do you have a compiler installed at all? And if you do, check that the path to it is set properly in compiler options. Also, if you use a compiler with only non-standard executable names (such as "gcc-i686-foo-bar-DW2.exe" or something), make sure that you either configure the executable names properly in the compiler settings dialog as they appear, or alternatively make a junction with a generic name "such as "gcc.exe") to the real program. Instead of a junction, a copy will do, too.
The whole point is, whatever you tell Code::Blocks to look for, it must be able to find that.

Dev-CPP is made so every monkey can use it, but that is no surprise, as it comes with its own version of MinGW bundled, and it's preconfigured to work with exactly this one constellation, and nothing else.
You can have that with Code::Blocks too, if you select the right option in the installer. In addition, Code::Blocks will also detect most properly done installations of MinGW by itself (unless you prevent the installer from writing to the registry).
What it can't (or rather, won't) do is find the right compiler out of possibly a million files on your hard disk if neither there are any registry hints, nor the compiler is in its default location, i.e. some unknown compiler version that you either unzipped manually or that happens to be inside Dev-CPP's folder.
Logged

"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."
MortenMacFly
Administrator
Lives here!
*****
Offline Offline

Posts: 8680



« Reply #5 on: July 07, 2009, 02:18:51 pm »

Windows XP

File>Open>Laber.cpp

Build>Build
--> Compiles just fine.

Build>Compile current file
--> Compiles just fine.

Build>Build and Run ...
--> Compiles and runs just fine.

All is OK. Now guess what's wrong about your post.
ONE hint I'll, give you: Search the forums. The others you'll have to figure out yourself. Topic locked.
Logged

Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: http://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: http://wiki.codeblocks.org/index.php?title=FAQ
Pages: [1]   Go Up
  Send this topic  |  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.20 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!