Author Topic: CodeBlocks IDE is not working...  (Read 4866 times)

0 Members and 2 Guests are viewing this topic.

Offline Spyro543

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1189
  • Rating: +74/-3
    • View Profile
CodeBlocks IDE is not working...
« on: November 06, 2011, 06:29:38 am »
I've been trying to learn C++, but with an IDE/Compiler that is refusing to work (or maybe I'm too n00bish to figure it out :P) it's kinda hard.
I set the default compiler to Cygwin GCC, set all the toolchain executables (C compiler -> gcc.exe, C++ compiler -> g++.exe), and typed in some code in my current project. It's just a very simple program:
Code: [Select]
#include <iostream>
using namespace std;
int main()
{
    int a = 5;
    int b = 6;
    a = a + 5;
    int result = a + b;
    cout << "The result is " << result;
    return 0;
}
(Also I think the numbering is broken on the code tags)
When I click Build and Run, I get a command prompt window with the following:
Code: [Select]
      4 [main] ? 2488 handle_exceptions: Exception: STATUS_ACCESS_VIOLATION
Exception: STATUS_ACCESS_VIOLATION at eip=77AA47E5
eax=00000000 ebx=00000000 ecx=00000000 edx=7EFDD000 esi=00000000 edi=00400000
ebp=0028EEA4 esp=0028EE70 program=, pid 0, thread main
cs=0023 ds=002B es=002B fs=0053 gs=002B ss=002B
Stack trace:
Frame     Function  Args
0028EEA4  77AA47E5  (00400000, 00000000, 00000000, 0028EEE8)
0028EEB8  77AA2C54  (00400000, 00000001, 0028EFC0, 6104F4A6)
0028EEE8  6109A582  (00400000, FFFFFFFE, 0028EEE4, 77AA317F)
0028EFA8  61004A78  (0028EFC0, FFFFFFFF, 0000EEEE, 0028F8B8)
0028FF58  6100594F  (00000000, 00000000, 00000000, 00000000)
End of stack trace

Process returned -1073741819 (0xC0000005)   execution time : 10.676 s
Press any key to continue.
And in the build log I get:
Code: [Select]
Checking for existence: C:\Users\Owner\Documents\C++Proj\C++ Experiments\bin\Release\C++ Experiments.exe
Executing: "C:\Program Files (x86)\CodeBlocks/cb_console_runner.exe" "C:\Users\Owner\Documents\C++Proj\C++ Experiments\bin\Release\C++ Experiments.exe"  (in C:\Users\Owner\Documents\C++Proj\C++ Experiments\.)
Process terminated with status -1073741819 (0 minutes, 52 seconds)
Anyone know what's wrong here? Any way I can fix it?

Offline harold

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 226
  • Rating: +41/-3
    • View Profile
Re: CodeBlocks IDE is not working...
« Reply #1 on: November 06, 2011, 08:00:03 am »
Code::blocks has never done that to me..
I see nothing in the code that should cause an access violation, but just in case, could you post the disassembly?
Blog about bitmath: bitmath.blogspot.nl
Check the haroldbot thread for the supported commands and syntax.
You can use haroldbot from this website.

Offline Scipi

  • Omni Kitten Meow~ =^ω^=
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1547
  • Rating: +192/-3
  • Meow :3
    • View Profile
    • ScipiSoftware
Re: CodeBlocks IDE is not working...
« Reply #2 on: November 06, 2011, 09:22:49 am »
It compiled and ran. Try executing the binary and see if it gives you that error. It might be your compiler(?)

It the binary gives you the same result try another compiler like MinGW.

Imma Cat! =^_^= :3 (It's an emoticon now!)
Spoiler For Things I find interesting:
Spoiler For AI Programming:
Spoiler For Shameless advertising:

Spoiler For OldSig:





Spoiler For IMPORTANT NEWS!:
Late last night, Quebec was invaded by a group calling themselves, "Omnimaga". Not much is known about these mysterious people except that they all carried calculators of some kind and they all seemed to converge on one house in particular. Experts estimate that the combined power of their fabled calculators is greater than all the worlds super computers put together. The group seems to be holding out in the home of a certain DJ_O, who the Omnimagians claim to be their founder. Such power has put the world at a standstill with everyone waiting to see what the Omnimagians will do...

Wait... This just in, the Omnimagians have sent the UN a list of demands that must be met or else the world will be "submitted to the wrath of Netham45's Lobster Army". Such demands include >9001 crates of peanuts, sacrificial blue lobsters, and a wide assortment of cherry flavored items. With such computing power stored in the hands of such people, we can only hope these demands are met.

In the wake of these events, we can only ask, Why? Why do these people make these demands, what caused them to gather, and what are their future plans...

Offline Binder News

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 785
  • Rating: +46/-3
  • Zombie of Tomorrow
    • View Profile
Re: CodeBlocks IDE is not working...
« Reply #3 on: November 06, 2011, 09:44:35 am »
Yeah, go with MinGW. It's a port of GCC to Windows, so it's not as complete as Cygwin, but I have never had any problems whatsoever with MinGW.
Spoiler For userbars:







Hacker-in-training!   Z80 Assembly Programmer     Axe Programmer
C++ H4X0R             Java Coder                           I <3 Python!

Perdidisti ludum     Cerebrum non habes

"We are humans first, no matter what."
"Fame is a vapor, popularity an accident, and riches take wings. Only one thing endures, and that is character."
Spoiler For Test Results: