aspell-devel
[Top][All Lists]
Advanced

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

Re: [aspell-devel] Aspell does not compile under current GCC-CYGWIN


From: Melvyn Sopacua
Subject: Re: [aspell-devel] Aspell does not compile under current GCC-CYGWIN
Date: Wed, 30 Oct 2002 14:06:22 +0100

At 13:16 30-10-2002, Melvyn Sopacua wrote:

There are a few warnings, which can be easily corrected, with a patch i'll provide shortly.

Actually - that looks to be a bit more difficult than I thought.

The warnings are:
Info: resolving _aerror_other by linking to __imp__aerror_other (auto-import)

And basically anything in common/errors.hpp

So I thought:
#if defined(__CYGWIN__) || defined (_WIN32)
#define DLLIMPORT __declspec(_dllimport)
#else
#define DLLIMPORT
#endif

namespace acommon {

struct ErrorInfo;

extern "C" DLLIMPORT const ErrorInfo * const aerror_other;

That would fix it (see also common/iostream.hpp and various other Cygwin packs).
But that results in:
common/errors.hpp:59: undefined reference to `_imp__aerror_other'

Which misses a leading underscore.
So somebody who actually understands how DLLIMPORT works, should prolly take a shot :)

By the way - it would be cosmetic fix, as the linker does resolve them correctly.


Best regards,
Melvyn Sopacua
WebMaster IDG.nl
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
If it applies, where it applies - this email is a personal
contribution and does not reflect the views of my employer
IDG.nl.
\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\





reply via email to

[Prev in Thread] Current Thread [Next in Thread]