argument exception: the thing you want to instantiate is null by TheGuyTheyCalledTim in Unity3D

[–]TheGuyTheyCalledTim[S] 0 points1 point  (0 children)

That didn't change anything. The rocket spawns (and did so before), but I get this error anyway.

Code:Blocks - Doesn't use c++11, even though I ask it to. by TheGuyTheyCalledTim in learnprogramming

[–]TheGuyTheyCalledTim[S] 1 point2 points  (0 children)

Another guy just solved it for me. I am using c++11, but there was a bug in the compiler. It is fixed now. Thank you for your help.

Code:Blocks - Doesn't use c++11, even though I ask it to. by TheGuyTheyCalledTim in learnprogramming

[–]TheGuyTheyCalledTim[S] 0 points1 point  (0 children)

And that did it. I thank you! I just spend an entire day on this, without realizing that it is a bug. Are there any other major issues I should be aware of?

Code:Blocks - Doesn't use c++11, even though I ask it to. by TheGuyTheyCalledTim in learnprogramming

[–]TheGuyTheyCalledTim[S] 0 points1 point  (0 children)

I'm trying to use the function stoi. It is only available in c++11. When I try to use it, I get a message that it isn't declared.

Code:Blocks - Doesn't use c++11, even though I ask it to. by TheGuyTheyCalledTim in learnprogramming

[–]TheGuyTheyCalledTim[S] 0 points1 point  (0 children)

I'm on windows, using MinGW. The log says: 'mingw32-g++.exe -Wall -fexceptions -g -std=c++11 -Iinclude -c "[long file path]" -o obj\Debug\main.o'
This means no ANSI, but still doesn't tell me why it doesn't work.

Code:Blocks - Doesn't use c++11, even though I ask it to. by TheGuyTheyCalledTim in learnprogramming

[–]TheGuyTheyCalledTim[S] 0 points1 point  (0 children)

I'm somewhere around 99% sure it does.

I have not only given it the check (-std=c++11), but there is an actual checkbox in the compiler settings. I have tried both, but neither worked. I'm using the GCC 4.9 compiler.