C Contest Code

Pages: 1234
It does do threads but I don't know how well they're supported yet.

If you want to get experience with threads, you can get boost -- it's another lib but it's very easy to install. And boost's thread API is 100% identical to C++11's thread API as far as I've been able to tell (only the namespace name is different).
Last edited on
closed account (S6k9GNh0)
http://www.boost.org/doc/libs/1_53_0/doc/html/thread/compliance.html#thread.compliance.cpp11

It's not quite compliant but it's close enough to be interchangeable for the most part.
GCC and clang headers should have a working thread library... not sure about VC++.
Last edited on
I copied and pasted the example from cppreference and got this:
http://liveworkspace.org/code/1lGPBX$0
That's with clang :(
Last edited on
what compilers do you guys use?
@LB that page thing is the coolest
@ Greenleaf: VS2012 express
@Disch - Never had you pinned for a VS user. Don't know why...
@Disch

Dang, code::blocks doesn't have that...is there anything other compiler that works like that?
@greenleaf I use VC++2008 for one of my projects, and I use Sublime Text 2 with the SublimeClang plugin for everything else (and obviously clang to compile for C++11)
Can you post download links?
@greenleaf
VC++2008 http://www.microsoft.com/en-us/download/details.aspx?id=6506 (vcsetup.exe)
Sublime Text http://www.sublimetext.com/
SublimeClang http://github.com/quarnster/SublimeClang#readme
Clang http://llvm.org/releases/download.html#3.2 (If you're on Windows, you can use the "Experimental Clang Binaries for Mingw32/x86", in which case you need http://sourceforge.net/projects/mingw/files/Installer/mingw-get-inst/mingw-get-inst-20120426/ )
Last edited on
First link doesn't work. And can you tell me how to install?
Sublime Text - 2 Thumbs Up
Last edited on
Don't bother with VS2008 when VS2012 is available.
Yes, the only reason I use VC++2008 is because I have to. VC++2012 is much nicer, and it works on Windows 7 (not just Widows 8).
What's prohibiting you from using VS2012, LB?
maybe school
Nope, in school we use Java.
Then, I guess it is system requirements.
Nope, I have Visual Studio 2012 installed as well.
Pages: 1234