Diddy threading driving me mad
Monkey Forums/Monkey Beginners/Diddy threading driving me mad
| ||
I cant get Diddy threading module to work :/ Ive been having other compilation issues: http://www.monkey-x.com/Community/posts.php?topic=9909 And now I am trying to get Diddy threading module to work and I cant even get the example to compile. I am trying to compile threadTest.monkey to compile and I get the error: ../main.cpp:4321:24: fatal error: tinythread.h: No such file or directory #include "tinythread.h" ^ compilation terminated. Makefile:55: recipe for target 'build/Debug/main.o' failed mingw32-make: *** [build/Debug/main.o] Error 1 TRANS FAILED: Error executing 'mingw32-make CCOPTS=" -O0" OUT="Debug/MonkeyGame"', return code=2 I'm not sure if I have to tell mingw where the threading library is or what |
| ||
I managed to get it to work by copying tinythread.h from the "native" folder in the module to "C:\MinGW\include\" Not sure if this is the right way to solve the issue though. |
| ||
If you look in the header of threading.monkey you can see:C++ targets (GLFW, stdcpp, iOS, WinRT) require the TinyThread++ header files to be copied to the build directory. And in thread.monkey: ' Don't forget to copy the header files into your build directory after the first build So yes, that was the right way to do it. :) I might be able to set this up better with the latest version of Monkey. I'll take a look at it. |