My Hello World Reported this error....

Monkey Forums/Monkey Beginners/My Hello World Reported this error....

MonkeyPlotter(Posted 2014) [#1]
Function Main ()

	Print "Hello, world!"

End



cc1plus: error: unrecognized command line option "-Wno-free-nonheap-object"
TRANS FAILED: Error executing 'g++ -Wno-free-nonheap-object -o main_winnt main.cpp -lwinmm -lws2_32', return code=1

Is there a simple explanation for this ? I was trying to follow learnmonkey.pdf using version 79e of Monkey, which I just downloaded.

I didn't even manage to get to the point where I had an option to choose which TARGET I wanted to build for.

Also, when I try to run any of the examples I receive the error:

#Error "Native Game class not implemented"

How do I implement the Native Game Class?


dawlane(Posted 2014) [#2]
Which target have you selected in the ide?


MonkeyPlotter(Posted 2014) [#3]
Thanks Dawlane for the suggestion - I navigated to Build, Build Target and changed it from the Default (which was set to C++) to HTML5 and it worked.

The following code example in the Docs produces a pleasing animated Spiral: