I started up a console 'Hello World' project, and while trying to compile it gives me that error. It doesn't give me the same error for the examples, though, what gives? I followed the project settings instructions under the tutorial, too.
I started up a console 'Hello World' project, and while trying to compile it gives me that error. It doesn't give me the same error for the examples, though, what gives? I followed the project settings instructions under the tutorial, too.
The file that asks for pthread.h is mutex.h @ line 44.
Add "-pthread" to the GCC flags in your applications makefile
I'm using Visual Studio 2008.
Ah; I've seen this thread: http://www.rtsoft.com/forums/showthread.php?t=2706 , and I added WIN32 to the preprocessor options, but now I get these errors:
Warning 1 warning LNK4031: no subsystem specified; CONSOLE assumed ClanLibHelloWorld ClanLibHelloWorld
Error 2 error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup LIBCMTD.lib ClanLibHelloWorld
Error 3 fatal error LNK1120: 1 unresolved externals W:\Users\Nicolas\Documents\Visual Studio 2008\Projects\ClanLibHelloWorld\Debug\ClanLibHello World.exe 1 ClanLibHelloWorld
Your visual studio project options have not been set up.
Have a look at the clanlib examples, and copy the settings.
That did it, thanks!
Bookmarks