S
S
spry2011-01-04 14:42:26
C++ / C#
spry, 2011-01-04 14:42:26

Quietly the roof goes slowly: how to make friends with a static library built in GCC and MSVC?

So, we have a static library built in 4 versions (for each of the debug and release compilers):
- i686-pc-cygwin-gcc (-mno-cygwin)
- gcc from the MinGW
[email protected] package is linked with the host project in the studio with a bang, it even works :)
[email protected] does not link with the host project in the studio, it swears at __alloca (there is such a thing in ms-libraries, but it's called _alloca there).
[email protected] doesn't link to studio host project, complains about __chkstk
[email protected] links to studio host project, but doesn't work (crashes).
Who understood this, how to assemble it correctly? Judging by the results, it is possible to collect, the truth is somewhere nearby.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
Z
z0rc, 2011-01-04
@spry

I can't tell you about Cygwin, but when working with MinGW, you should take at least GCC 4.5.1. It was in it that the mingw-w64 project did a lot of work on compatibility with MSVC. For more details, you need to either smoke their wiki, or kick the developers on the project's IRC channel (the latter is usually more effective).

A
agul, 2011-01-04
@agul

What is the difference between _alloca and _alloca?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question