From http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28general%29#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F (http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28general%29#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F)
We need at lease this info
Code::Blocks version Code::BlocksVersionNumber on MyOperatingSystem
(version OperatingSystemVersionNumber). The compiler I use is CompilerName
version CompilerVersionNumber.
Edit: Problem on Windows OS like this is normally Anti-Virus, Anti-Ransomware, Windows Permission issue, or user error.
Tim S.
First of all: Codeblocks is NOT a compiler. Codeblocks is an IDE that can use different compiler. Wording is important, because else we have a thread with 100 pages only to find out you are talking about compiler issues and try to blame codeblocks!
it says the file is open, but it won't display on screen
I have never seen a message that a file is "already open". I don't think that this message is anywhere implemented in codeblocks. So to help us, helping you, i would suggest to nag less and give more detailed description without generalizing or using "it does not work". Exact error messages or a screenshot are the best way to describe problems. This costs a view minutes to write or make but at the end you will have a fix and we don't have to complain and ask the same question 1000 times and always get the same useless answer and frustrating you...
One example to describe the problem:
1) Open codeblocks
2) Open project over the start page by clicking on its name
3) Trying to open a file from the project tree by double click on the file in the project tree.
Expected: Show the file
Result: The title bar changes the name to the expected file but the editor shows the line numbering but the text is only blank
Or:
1) Open codeblocks
2) Open project over the start page by clicking on its name
3) Trying to open a file over File->Open file
Expected: Show the file in the editor
Result: Codeblocks shows a error message box with the wording "Can not read the file. Do you have read permissions?"
4) I have checked the file permissions and i have read permission but not write permission. What is going on?
well, what i mean by latest CB is going to the website right now and downloading it. That's the one i'm using. I just havent taken the time to find the version (and i don't want to open it up again).
Ok this is lazy as it can get. First of all on the website of codeblocks are 6 download links for windows alone. To find the version every decent program has his exact version number in Help->About ....
I have not found any other users with this problem in my attempts to google it.
So it is a difficult bug to reproduce and it would be good that you describe the problem as good as possible, or it is a osi level 8 error, also there describing the problem and not repeating the same useless text would help a lot...
I tried resetting my perspective to defaults and that didn't help. And yes, I even deleted the current perspective with no effect. I experienced this once before a few months ago. I just reinstalled it.
This leads to a config bug. But we don't even know how the problem is manifested...
but i still can't get the breakpoints to work or to get the watch list to work properly.
The breakpoints not working can have a lot reasons. User and codeblocks errors, all fixable:
1) You don't use the debug target or don't use the "-g" compiler option
2) GDB can not work with the paths codeblocks provides. We had a bug report about this and wait for user feedback to fix this. So if you too have this problem, it would be great to help us fix this by providing some detailed feedback. We can not reproduce it so it is hard (impossible) to fix without feedback from a user with this problem.
3) What do you mean with "to work properly"? For me it is easy as fuck...
Right click on the variable ->Add to watch
What is there not "work probably"? Are you talking about displaying the value? Adding new watches? Deleting watches? Are you getting any error messages?
I was just hoping for a quick fix here but it seems more hassle than it's worth.
Describe the problem, provide screenshots, nag less and it is (probably) a quick fix
As one example, some of the things I had to fix when porting over was having to type cast strlen within "if" statements with Visual studio, as code blocks didn't come up with this error.
Codeblocks does not care about your code or any include file. The compiler does. And what the fu is "type cast strlen within if" are you talking about "type cast the return value of stlen" for comparing with a non size_t type? Be careful there are sneaky c traps to fall into....
I also liked using dirent.h in CB, yet VS doesn't have that. I had to rewrite a loading function entirely because of this.
This has nothing to do with codeblocks but with the compiler / standard library you are working...
I would recommend you to read this: http://www.catb.org/esr/faqs/smart-questions.html
Sorry for this long post. All in all, I am pissed off by people that nag and blame things but are not willing to describe their problem or are to lazy to provide any useful information. Tell developer of one IDE how great the other IDE is, without describing the feature or problem in detail is a dick move
When it was working (prior to applying windows updates, automatic updates)
1. open CB.
2. existing project shows up.
3. I edit, program, whatever my source files, headers, etc.
When it's not working (after restarting my laptop from the windows updates)
1. open CB.
2. existing project shows up, EXCEPT, no files are open. no tabs, no nothing.
3. I cannot edit my source, headers, etc., because the files won't open up in the IDE.
Thank you.
If this happens again try to close codeblocks and move the *.layout file found in your project folder to a other place. Then restart codeblocks and open the project. If this fixes the problem please .zip and upload this layout file here.
But the IDE failed to open since I migrated my code from one directory to another. since it can't find the existing project, the IDE just crashed.
Did codeblocks crashed when you tried to open a project from the start page that no longer exists? Did you get any error message like "file not found"? Or did it crashed like "program stopped working" message from windows? If the later is there a crash report generated by codeblocks? Can you upload it?
i thought it would be easy too. i saw the "add to watch" but it did not add it to watch. it just opened up the watch window. and since i never had to actually "fill in the blanks" with a watch list before, i had no idea what to do at that point.
Can you give a minimal project where this is not working? Can you reproduce this with a minimal hello world project? Never had this problem.... Have you tried to highlight the variable and then right click->add watch? You can also use the watch window to evaluate complex source, like function calls and calculations.
yes, it was comparing an int with a size_t. visual studio came up with the error but CB did not.
I really don't like this wording ;) CB is still a ide and don't gives a s**t about your code. GCC did not print a error but for sure it printed a warning like "comparing signed with unsigned int" or something like this. You can add the compiler flag
to make all warnings errors and stop compiling after a warning (this should be good programing practice, because warnings will tell you something important about your code).
I was trying to figure out how to copy all the headers from one to the other, but i had no success.
really bad idea... Let compiler headers be compiler headers and do not copy them from one to a other. This screams for errors, bugs, crashes and compiling problems.
greetings