User forums > Help

Static vs Dynamic runtimes with GCC & VCTK

(1/4) > >>

chep:
Hi,

I don't really know much of GCC and VCTK (I'm used to work with C++Builder) so I was wondering...

I noticed that with default options, GCC is linking against the dynamic runtime (msvcrt.dll) whereas VCTK uses the static runtime.

How can I use the static runtime with GCC, or the dynamic runtime with VCTK ?
And are there, like for BCC, both Single Threaded and Multi Threaded versions of the runtime ?

I didn't find relevant information about this. :(

Thanks

montchai:
Same as me guy, I had some problem with building Multi-Threading DLL too. And I don't know how to build it. And in the main problem, "Why does no one help us to solves our problem?"

troels:

--- Quote from: chep on June 10, 2005, 10:26:51 am ---How can I use the static runtime with GCC, or the dynamic runtime with VCTK ?

--- End quote ---

With VCTK, dynamic is /MD, static is /MT.
Using msvcrt.dll is free, also for users of gcc, but the code inside the dll is not free, it's Microsofts property. So the gcc people cannot provide the code, in a .lib/.a, it's not theirs to give out. (I didn't see this in print anywhere, it's only - qualified? - speculation)

Regards,
Troels

rickg22:
The reason why nobody seems to help you is that nobody seems to use MSVC Toolkit :(

At least I don't use MSVC, Yiannis has some knowlegde about it, but he's on vacations for 3-weeks. Anyway, I think  that in the project options you need to add the libraries for multi-threaded code by yourself, until we have more research done on MSVC projects importing.

There was a similar Issue on BCC compilers, but I'm afraid we're not able to support multi-threaded libs "out of the box" before 1.0 comes out.

kagerato:
What precisely is the benefit of using Microsoft's compiler?

Are the binaries even gdb-compatible?  (In other words, can gdb read the symbols generated by MSVC?  I'm doubtful.)

People say that MinGW is slow, but there have been virtually no benchmarks to back up this assertion.  If valid statistics do exist, why are they not widely published?

Navigation

[0] Message Index

[#] Next page

Go to full version