Error: 'App' was not Declared in This Scope

Monkey Forums/Monkey Programming/Error: 'App' was not Declared in This Scope

zoqfotpik(Posted 2014) [#1]
On Monkey 76d, when I try to run any apps that use Diddy, I am receiving the following errors:

TRANS monkey compiler V1.60
Parsing...
Semanting...
Translating...
Building...
g++  -O3 -DNDEBUG -I../glfw/include -I../glfw/lib -I../glfw/lib/win32 -I../openal/include -I../stb  -c -o ../main.o ../main.cpp
../main.cpp: In static member function 'static void diddy::flushKeys()':
../main.cpp:4011:4: error: 'app' was not declared in this scope
../main.cpp: In static member function 'static int diddy::getUpdateRate()':
../main.cpp:4016:10: error: 'app' was not declared in this scope
../main.cpp: In static member function 'static int diddy::getPixel(int, int)':
../main.cpp:4148:19: error: 'app' was not declared in this scope
../main.cpp: In static member function 'static int diddy::seekMusic(int)':
../main.cpp:4154:25: error: 'app' was not declared in this scope
mingw32-make: *** [../main.o] Error 1
TRANS FAILED: Error executing 'mingw32-make CCOPTS="-O3 -DNDEBUG" OUT="Release/MonkeyGame"', return code=2
Done.


The import statement appears to be functioning correctly, so it looks like Diddy is installed. Any ideas?


therevills(Posted 2014) [#2]
You are using quite an old version of Diddy...


zoqfotpik(Posted 2014) [#3]
I got it off the Google Code site, maybe that needs an update? I will look for a new version.

Thanks for your hard work on Diddy and the stellar support you provide for a free product, most places with software costing thousands of dollars with paid support contracts fall far short.


therevills(Posted 2014) [#4]
I got it off the Google Code site, maybe that needs an update? I will look for a new version.

Yeah that version is old and just there for people needing an old version.

I added some info on the project home page ages ago informing users that they need to either use Hg or the Zip download button.

http://code.google.com/p/diddy/



Glad you like Diddy :)


zoqfotpik(Posted 2014) [#5]
Yeah, I saw that just now, I guess the red arrow and yellow highlight weren't enough for me in my brainfogged state. Thanks again.