This is the mail archive of the cygwin-talk mailing list for the cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: --add-stdcall-alias equivalent for Visual-C++ ?


Robert Pendell wrote on 19 June 2008 21:10:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Jim Kleckner wrote:
>> Jim Kleckner wrote:
>>> An off-topic request:
>>> 
>>> The --add-stdcall-alias argument to ld exports symbols as both
>>> "decorated" (with leading _ and trailing @nn) and "undecorated".
>>> 
>>> Anyone know of the easiest way to get VC++ to do this?
>>> Yes, a manual exports .def file can be created (or semi-automated).
>>> 
>>> But it is so nice that ld does this which is needed for Excel or other
>>> DLL-consuming Windoze programs.
>>> 
>> 
>> FYI, after searching and trying lots of hacks, I came up with
>> including a "pragma comment" as the easiest way to manage
>> this requirement.  Microsoft doesn't appear to want to make
>> this easy the way gcc/ld does.
>> 
>> Something like:
>> 
>> #pragma comment(linker, "/EXPORT:func1=_func1@4")
>> 
>> 
> 
> Why am I thinking this is off-topic even for the talk list?  This is a
> cygwin list.  Not VC++.  *whistles*

</hands Robert a hippo>

  Go on.  You know what to do.


    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]