why would codeblocks suddenly stop reconizing include commands

i could load an old bit of code up it works, i copy and [aste the includes and it wont reconize them, what is going on??
Kind of need more information than that. What exactly is it saying?

On a side note, this is why people urge you to learn how to compile and link from the command line first.
i could get a code that works, copy it and paste it into a new folder save it as a cplusplus and my debugger wont reconise a single ickle wittle command, it says i no sutch file or directory or error near initializeation of drarray etc, for every single thing
Can you copy and paste the errors? I'm really curious- maybe I've seen it before and can help you. Feels like I've seen every error possible lately. ;)
kk





C:\Users\user\Documents\C++ folder\bunnybreeed.c|1|error: iostream: No such file or directory|
C:\Users\user\Documents\C++ folder\bunnybreeed.c|2|error: string: No such file or directory|
C:\Users\user\Documents\C++ folder\bunnybreeed.c|3|error: cstdlib: No such file or directory|
C:\Users\user\Documents\C++ folder\bunnybreeed.c|4|error: ctime: No such file or directory|
C:\Users\user\Documents\C++ folder\bunnybreeed.c|5|error: vector: No such file or directory|
C:\Users\user\Documents\C++ folder\bunnybreeed.c|6|error: cmath: No such file or directory|
C:\Users\user\Documents\C++ folder\bunnybreeed.c|7|error: expected '=', ',', ';', 'asm' or '__attribute__' before 'namespace'|
C:\Users\user\Documents\C++ folder\bunnybreeed.c|9|error: expected '=', ',', ';', 'asm' or '__attribute__' before 'bunny'|
C:\Users\user\Documents\C++ folder\bunnybreeed.c|128|error: initializer element is not constant|
C:\Users\user\Documents\C++ folder\bunnybreeed.c|128|error: (near initialization for 'brdray[0][0]')|
C:\Users\user\Documents\C++ folder\bunnybreeed.c|128|error: initializer element is not constant|
C:\Users\user\Documents\C++ folder\bunnybreeed.c|128|error: (near initialization for 'brdray[0][1]')|
C:\Users\user\Documents\C++ folder\bunnybreeed.c|128|error: initializer element is not constant|
C:\Users\user\Documents\C++ folder\bunnybreeed.c|128|error: (near initialization for 'brdray[0][2]')|
C:\Users\user\Documents\C++ folder\bunnybreeed.c|128|error: initializer element is not constant|
C:\Users\user\Documents\C++ folder\bunnybreeed.c|128|error: (near initialization for 'brdray[0][3]')|
C:\Users\user\Documents\C++ folder\bunnybreeed.c|128|error: initializer element is not constant|
C:\Users\user\Documents\C++ folder\bunnybreeed.c|128|error: (near initialization for 'brdray[0][4]')|
C:\Users\user\Documents\C++ folder\bunnybreeed.c|128|error: initializer element is not constant|
C:\Users\user\Documents\C++ folder\bunnybreeed.c|128|error: (near initialization for 'brdray[0][5]')|
C:\Users\user\Documents\C++ folder\bunnybreeed.c|128|error: initializer element is not constant|
C:\Users\user\Documents\C++ folder\bunnybreeed.c|128|error: (near initialization for 'brdray[0][6]')|
C:\Users\user\Documents\C++ folder\bunnybreeed.c|128|error: initializer element is not constant|
C:\Users\user\Documents\C++ folder\bunnybreeed.c|128|error: (near initialization for 'brdray[0][7]')|
C:\Users\user\Documents\C++ folder\bunnybreeed.c|128|error: initializer element is not constant|
C:\Users\user\Documents\C++ folder\bunnybreeed.c|128|error: (near initialization for 'brdray[0][8]')|
C:\Users\user\Documents\C++ folder\bunnybreeed.c|128|error: initializer element is not constant|
C:\Users\user\Documents\C++ folder\bunnybreeed.c|128|error: (near initialization for 'brdray[0][9]')|
C:\Users\user\Documents\C++ folder\bunnybreeed.c|128|error: initializer element is not constant|
C:\Users\user\Documents\C++ folder\bunnybreeed.c|128|error: (near initialization for 'brdray[0][10]')|
C:\Users\user\Documents\C++ folder\bunnybreeed.c|128|error: initializer element is not constant|
C:\Users\user\Documents\C++ folder\bunnybreeed.c|128|error: (near initialization for 'brdray[0][11]')|
C:\Users\user\Documents\C++ folder\bunnybreeed.c|128|error: initializer element is not constant|
C:\Users\user\Documents\C++ folder\bunnybreeed.c|128|error: (near initialization for 'brdray[0][12]')|
C:\Users\user\Documents\C++ folder\bunnybreeed.c|128|error: initializer element is not constant|
C:\Users\user\Documents\C++ folder\bunnybreeed.c|128|error: (near initialization for 'brdray[0][13]')|
C:\Users\user\Documents\C++ folder\bunnybreeed.c|128|error: initializer element is not constant|
C:\Users\user\Documents\C++ folder\bunnybreeed.c|128|error: (near initialization for 'brdray[0][14]')|
C:\Users\user\Documents\C++ folder\bunnybreeed.c|128|error: initializer element is not constant|
C:\Users\user\Documents\C++ folder\bunnybreeed.c|128|error: (near initialization for 'brdray[0][15]')|
C:\Users\user\Documents\C++ folder\bunnybreeed.c|128|error: initializer element is not constant|
C:\Users\user\Documents\C++ folder\bunnybreeed.c|128|error: (near initialization for 'brdray[0][16]')|
C:\Users\user\Documents\C++ folder\bunnybreeed.c|128|error: initializer element is not constant|
C:\Users\user\Documents\C++ folder\bunnybreeed.c|128|error: (near initialization for 'brdray[0][17]')|
C:\Users\user\Documents\C++ folder\bunnybreeed.c|128|error: initializer element is not constant|
C:\Users\user\Documents\C++ folder\bunnybreeed.c|128|error: (near initialization for 'brdray[0][18]')|
C:\Users\user\Documents\C++ folder\bunnybreeed.c|128|error: initializer element is not constant|
C:\Users\user\Documents\C++ folder\bunnybreeed.c|128|error: (near initialization for 'brdray[0][19]')|
C:\Users\user\Documents\C++ folder\bunnybreeed.c|129|error: initializer element is not constant|
C:\Users\user\Documents\C++ folder\bunnybreeed.c|129|error: (near initialization for 'brdray[1][0]')|
||More errors follow but not being shown.|
||Edit the max errors limit in compiler options...|
||=== Build finished: 50 errors, 0 warnings ===|
Last edited on
basicly i just got a headhitter that does nothing other than act as a fancy word processor
This might not help you a bit, but like... I had a problem similar to that when I was trying to use an unfamiliar compiler at school. What I ended up doing is creating a brand new project, making sure hello world compiled, and then copying and pasting my code into the new project. Sometimes IDEs are weird, and I have no idea why, unfortunately. It sounds crazy I know, but give it a shot and let me know how it turns out. Command-line is so much simpler sometimes. :P
C:\Users\user\Documents\C++ folder\bunnybreeed.c|129|error: (near initialization for 'brdray[1][0]')|


C:\Users\user\Documents\C++ folder\bunnybreeed.c|129|error:


bunnybreeed.c


You have a c file. You need a cpp file.
Sometimes IDEs are weird, and I have no idea why, unfortunately


The IDE is doing exactly what it's told to do. OP just gave it the wrong file type.
:D yayy i feel silly, they say computers are only as smart as the user, but i say some are possed by evil spirits, why it changed the way it saved things...balck juju thats why, thans for your help guys
It didn't change anything. Codeblocks defaults to .c files when you create a new file.
Topic archived. No new replies allowed.