Francois Gouget fgouget at free.fr
Wed Nov 20 12:33:10 CST 2002

On Wed, 20 Nov 2002, György 'Nog' Jeney wrote:

> > Folks,
> >
> > msvcrt has this in its spec file:
> >
> > dlls/msvcrt/msvcrt.spec:@ forward -noimport _itoa ntdll._itoa
>                                     ^^^^^^^^^
> This is your problem.  This tell winebuild to not export this function to
> winelib apps.  The reason for this is probably to make pepole use the native
> unix version.  Why I dont know.

There is no native implementation of '_itoa'. 'itoa' yes, '_itoa', no.

However, in the past all Winelib applications would link to ntdll.dll
and I think this is why all the functions that just forward to ntdll
would have the -noimport flag. I guess that the goal was to avoid un
unnecessary indirection.

Nowadays this may not be wise anymore since most Winelib applications
link to msvcrt.dll, not ntdll.dll. This makes it necessary to modify the
Makefiles to also link with ntdll.dll which seems a bit ugly. Might not
be so bad though.

Francois Gouget         fgouget at free.fr        http://fgouget.free.fr/
      Broadcast message : fin du monde dans cinq minutes, repentez vous !

More information about the wine-devel mailing list