Jump to content
  • Advertisement
Sign in to follow this  
Escarab

c runtime multithreaded library? MingW

This topic is 3672 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

So i decided that it's about time for me to start learning about threads and all. So i look for a tutorial and i've found it. But it's for microsoft's compilers and i use MinGW. In this tutorial is said that in order to avoid possible bugs i should link against the multithreaded version of the c runtime library (-MT on visual c++). But there is nothing like it in MinGW, or there is. And by the way, there is some way to download only visual c++ 2008's compiler, without the IDE? Thanks

Share this post


Link to post
Share on other sites
Advertisement
Ok, thanks. But you know where can i download only the VC80 compiler, without the visual c++ 2008 IDE?

Share this post


Link to post
Share on other sites
Quote:
Original post by Escarab
Ok, thanks. But you know where can i download only the VC80 compiler, without the visual c++ 2008 IDE?

Why would you ever want to?

But no, I don't think the compiler is available separately. You can, of course, download VC 2008 express and then just use the compiler binaries without the IDE. But you'd just make things difficult for yourself.

Share this post


Link to post
Share on other sites
If you only want to learn subject of threading I suggest you to do it with Java. JDK has very nice threading model and since threading is very fundamental to Java, almost any java book teaches how to work with threads. There are also some nice books on O'Reilly dedicated to concurrent programming only. It is also very simple to work with Java threads, so it is fast to experiment and learn.

Quote:
Original post by Escarab
Ok, thanks. But you know where can i download only the VC80 compiler, without the visual c++ 2008 IDE?


There was a "free vs toolkit" for vs 2k3, once upon a time, but since express edition came out, they don't distribute commandline tools only. But you migh find a link somewhere on msdn to that old dl (maybe). Otherwise, why using only commandline tools when you get entire tool. As said you can still use commandline tools only if you wish so.

here you go: http://msdn.microsoft.com/en-us/beginner/default.aspx

Otherwise mingw has all support for multithreaded c libraries you will need.

If you want to learn threading with threads, either learn win32 api when you install VS express, or if you want to learn something crossplatform go for posix threads:

http://sourceware.org/pthreads-win32/

or this: http://zthread.sourceforge.net/

Boost (www.boost.org) has also nice implementation of crossplatform threadwrappers.

After you learn some basics you will probably go for something more high-level so be sure to check OpenMP and Intel's thread lib:

http://www.intel.com/cd/software/products/asmo-na/eng/294797.htm

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!