Compile Error: Identifier CreateThread not found?

BlitzMax Forums/BlitzMax Programming/Compile Error: Identifier CreateThread not found?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I copied this code as a sample to test threading but everytime
I compile, I get a 'CreateThread not found'.

I compiled and recompiled and it doesn't recognized any thread function.

My first step was that I:

svn update "c:\program files\blitzmax"
svn update "c:\program files\blitzmax\bin"



Then I change my path:

"c:\program filesblitzmax\bin\



And then did a

bmk makemods -a -h



Everything compiled fine; and when I go to compile the code below I get the error.

What am I forgetting?



SuperStrict

Import pub.threads

Local Time:Int = MilliSecs()
Local Thread:Int = CreateThread(WaitOnMe,Null)

WaitThread(Thread)
Print "I have waited "+(MilliSecs()-Time)+" milliseconds"
Input()

Function WaitOnMe:Object(data:Object)
	Print "In the WaitOnMe Thread"
	Delay(10000)
	Print "Finished Delay"
End Function