Re: problems while compiling gtk with MSVC



Hubert Sokolowski writes:
it. I get a window telling that my app caused a fault or something.
my exe is compiled using gcc. is it possible to use msvc dll's with exe
compiled with gcc?

For the DLLs built and distributed by me, yes. That is something that
is suppposed to work, and has been tested many times. Both compiling
GLib or GTK with MSVC6 and app with gcc, and the other way. You have
to use the -mms-bitfields when compiling with gcc in order to get
identical struct layout, though. And when compiling with MSVC6 you
should use the -MD switch to use the MSVCRT.DLL runtime.

I can't promise anything about binaries built by others, though. Other
people don't necessarily take binary compatibility issues
seriously. (Ditto for installation location independence and
multi-language support.)

The severna.homeip.net site says that its binaries are built with
Visual Studio 7. This probably means the DLLs don't use the MSVCRT
runtime. If so, it is almost certain that they won't be fully useable
from code that does use MSVCRT, like that compiled by gcc or earlier
versions of MSVC. I hope the severna guy uses different names for his
DLLs.

or maybe I have to recompile my exe using lib and header files from
above location?

The severna site talks about MSVC7 only, and presumably doesn't
provide any import libraries that GNU ld could use.

--tml





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]