user541686
user541686

Reputation: 210352

Is it possible to compile programs that use ATL using GCC (MinGW or otherwise) given it uses __try?

I'm confused how people use MinGW to compile Windows programs.

I tried using it, but headers like atlalloc.h and atlcom.h use __try in a few ways... which no version of GCC appears to support, for example:

__declspec(noinline) inline bool _AtlVerifyStackAvailable(_In_ SIZE_T Size) {
    bool bStackAvailable = true;
    __try {
        ...

How do people compile Windows programs with GCC-based toolchains? Do they simply avoid ATL altogether? Or is there some way to make ATL work with these?

Upvotes: 3

Views: 136

Answers (0)

Related Questions