[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: CygWin woes
From: |
Max Bowsher |
Subject: |
Re: CygWin woes |
Date: |
Fri, 25 Apr 2003 01:48:10 +0100 |
Earnie Boyd wrote:
> Charles Wilson wrote:
>> Earnie Boyd wrote:
>>
>>> Magnus Therning wrote:
>>>
>>>>
>>>> int
>>>> foo(int bar)
>>>> {
>>>> return 42 * bar;
>>>> }
>>>>
>>>
>>> FWIW, if you wish to export this function from the dll then you should
>>> prototype it as ``__declspec(dllexport) int foo (int);'' so that the
>>> linker doesn't have to guess.
>>
>>
>> Disagree 100%. The whole point of my work and that of others over the
>> last 2.5 years concerning auto-import in gcc, binutils, automake,
>> autoconf, and libtool was precisely so that -- on cygwin at least, if
>> not on mingw -- we can discard those damn declspec() atrocities. PLEASE
>> don't encourage cygwin users to go back to the dark ages...
>>
>
> If you want to be portable between all the different vendors of win32
> build tools; then, you will do as I suggest. What I suggest is the MS
> officially documented method. So, I will suggest it as much as possible
> although I will now clarify upfront as to why.
On the other hand, using libtool in your build system *probably* suggests
that going the MS way just because it is the MS way, isn't a high priority.
And if you use libtool, you might as well take advantage of what it offers.
Max.