Re: How to generate 'stdcall' type .o code for gcc(arm-wince-pe target) ???

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

 



Simon,

On Fri, 2 Jan 2004, Simon Wu wrote:

>   I build a cross compiler for arm-wince-pe target and
> compile a .c program and found that the symbol names
> are 'cdecl' style and there is a '_' prefix before the
> function name. I want to generate stdcall type symbols
> and __attribute__ ((stdcall)) does not work.

I have not tried __attribute__ ((stdcall)) with arm-wince-pe,
but I had problem with '_' prefix during linking with Microsoft
libraries. -fno-leading-underscore option helped me to fix it.

BTW, note that both stdcall and cdecl conventions use '_' prefix
according to Microsoft documentation.


...Bye..Dmitry.


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux