User forums > Using Code::Blocks
Two simple questions
TriKri:
Hi!
I haven't used Code::Blocks before, but I thought I am going to try it out. I have been using DevCpp before, but the debugger there is a total mess. Later I changed to wxDevCpp but the debugger was not better there.
By the way, is there a good (functionally and not buggy) debugger in code blocks?
Now I have a couple of questions:
1. When I open a .cpp file, code bocks opens, but it doesn't load the file. I have to open the .cpp file once again for code blocks to really load the file. How can I change that? I have added "cpp", "c" and "h" as wildcards, but it doesn't seem to help.
2. When I try to compile one of my .cpp files, I get the message "Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings", and no exe-file is created. What does it mean?
MortenMacFly:
--- Quote from: TriKri on March 13, 2008, 02:19:36 pm ---By the way, is there a good (functionally and not buggy) debugger in code blocks?
--- End quote ---
Yes. :D
--- Quote from: TriKri on March 13, 2008, 02:19:36 pm ---1. When I open a .cpp file, code bocks opens, but it doesn't load the file.
--- End quote ---
Cannot reproduce. C::B version, OS... please: More details! Sample file where this happens?
--- Quote from: TriKri on March 13, 2008, 02:19:36 pm ---2. When I try to compile one of my .cpp files, I get the message "Process terminated with status 1 (0 minutes, 0 seconds)
--- End quote ---
I means that the compiler was run successful (no compiler crash) but it could not produce a file due to error in your code. Check the build log. Again: Sample file? The output directory is usually where the input file is unless you create a project. Where is you input file (full path)?
TriKri:
--- Quote from: MortenMacFly on March 13, 2008, 02:30:07 pm ---
--- Quote from: TriKri on March 13, 2008, 02:19:36 pm ---By the way, is there a good (functionally and not buggy) debugger in code blocks?
--- End quote ---
Yes. :D
--- End quote ---
Thank god, good.
--- Quote from: MortenMacFly on March 13, 2008, 02:30:07 pm ---Cannot reproduce. C::B version, OS... please: More details! Sample file where this happens?
--- End quote ---
I can't find the version of Code::Blocks in the about window, it only says "Version: svn build rev 7419", and it's a build from december 10, last year. I run Windows Vista. I recall word have behaved in the same way for a while now every time I have tried to open a document without having word opened. :( But it has to be the programs, cause I don't have the same problem with files opened in other programs than the ms office programs and now code blocks.
--- Quote from: MortenMacFly on March 13, 2008, 02:30:07 pm ---I means that the compiler was run successful (no compiler crash) but it could not produce a file due to error in your code. Check the build log. Again: Sample file? The output directory is usually where the input file is unless you create a project. Where is you input file (full path)?
--- End quote ---
Okay, here's an example code that leaves the same message:
--- Code: ---void main() {
}
--- End code ---
:)
Even if this program doesn't do anything, it shouldn't be anything wrong with the code, right?
MortenMacFly:
--- Quote from: TriKri on March 13, 2008, 10:03:38 pm ---I run Windows Vista.
--- End quote ---
I run C::B on Vista, too - all the day. I still cannot reproduce even with the "file" you gave me.
Please do the following:
- Get rid of *all* C::B installation files, including the settings folder under Users\[YOU]\AppData\Roaming\codeblocks (IIRC).
- Remove any additional MinGw compiler you probably have (you may want to do a backup before).
- Install the "grab-it-while-its-hot" C::B release version 08.02 -> the bundle setup that ships with a 100% Vista compatible compiler (the on I use daily... ;-)).
- Install to a folder without spaces (although this is not really required anymore... but thirdparty libs/apps you use might get a hick-up otherwise...).
- Check the configuration of C::B after launching, especially the following parts:
- compiler plugin: is the tool chain setup correctly (pointing to the MinGW sub-folder of the *new* C::B?)
- Settings -> Environment -> "General settings" -> is the checkbox "Check and set file assocs" enabled?
- Settings -> Environment -> "General settings" -> Click on "Manage" -> Are the C/C++ file extensions registered properly (are they active???)
This really should work then.
JGM:
--- Quote from: TriKri on March 13, 2008, 10:03:38 pm ---I can't find the version of Code::Blocks in the about window, it only says "Version: svn build rev 7419", and it's a build from december 10, last year. I run Windows Vista. I recall word have behaved in the same way for a while now every time I have tried to open a document without having word opened. :( But it has to be the programs, cause I don't have the same problem with files opened in other programs than the ms office programs and now code blocks.
--- End quote ---
You should scan your pc for viruses and spyware :wink: Or maybe the file associations are messed up
Navigation
[0] Message Index
[#] Next page
Go to full version