libtool
[Top][All Lists]
Advanced

[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:02:02 +0100

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...

Yep. I'm guessing the all he needs to do is use the -no-undefined flag. (See
demo subdir of libtool for example).


Max.





reply via email to

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