Author Topic: single to multi threaded compile  (Read 9023 times)

MikeR

  • Guest
single to multi threaded compile
« on: July 30, 2005, 04:17:20 am »
I'm using CodeBlocks 1 final beta with vc2003 (free version) win xp sp1.
I am trying to compile a dll that requires mutithreaded support, but can't figure out what to change in the compiler.
I keep getting an error message becouse the compiler is set to single threads.
(compiling raknet)
Any help would be greatly appreciated.

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: single to multi threaded compile
« Reply #1 on: July 30, 2005, 10:11:51 am »
Wait a couple of days for the update that 'll be released. Among some other issues it addresses, it contains the settings you 're missing ;) (contributed by zieQ).

Yiannis.
Be patient!
This bug will be fixed soon...

zieQ

  • Guest
Re: single to multi threaded compile
« Reply #2 on: July 30, 2005, 10:48:38 am »
Anyway, the free version lacks some of the runtime libraries (a design choice I've been answered in a Microsoft forum), especially those for multithreaded debug and multithreaded dll release & debug when you use STL. Before the update is released, you could try to manually add the /MD or /MT switch and see  :)

MikeR

  • Guest
Re: single to multi threaded compile
« Reply #3 on: July 30, 2005, 03:24:52 pm »
Thanks for the answers.
First off, I would have no clue how to add the switches manually.  :?
I'll wait a few days and get the new version. I like this compiler front end.
It's the first one I've tried where it worked the first time.  :lol:

zieQ

  • Guest
Re: single to multi threaded compile
« Reply #4 on: July 30, 2005, 04:05:45 pm »
right-click on your project in the workspace explorer, "build options"
select your target on the left menu
select "compiler options" tab, go to "more options", add /MT

In the update, there will be new options in the "compiler option" checkbox list
« Last Edit: July 30, 2005, 04:08:49 pm by zieQ »

MikeR

  • Guest
Re: single to multi threaded compile
« Reply #5 on: July 30, 2005, 07:46:54 pm »
Thankyou. That worked. :)
The only compiler I've used successfully is dev-cpp. It doens't do directX tho, so this one was suggested. So far, so good.
Now back to the raknet forum to find the answer to the next set of errors.  :?