winelib and msvcrt/stdio.h
fgouget at free.fr
Thu Jul 19 14:54:21 CDT 2001
On Wed, 18 Jul 2001, brian r wrote:
> I am using Winelib and no mfc to get a company app to run on Linux. It is a cuiexe as well.
> However, I get a lot of errors when I include <msvcrt/io.h>.
'#include <msvcrt/io.h>' is wrong. Here's what you should do:
* '#include <io.h>' just as you would on windows
* use '-isystem $(WINE_INCLUDE_ROOT)/msvcrt' in your gcc options
(for those not using gcc, I believe '-I$(WINE_INCLUDE_ROOT)/msvcrt'
would do too most of the time)
Otherwise you'll run in the problem you ran into over and over again:
you #include io.h which #includes 'xxx.h' and it gets
/usr/include/.../xxx.h instead of '$(WINE_INCLUDE_ROOT)/msvcrt/xxx.h'
(or does not find xxx.h at all).
You should not need to copy any header from windows. If you need to
do so then it's a Wine bug (well, there are probably still a couple of
missing headers, let us know about it when you find one).
Francois Gouget fgouget at free.fr http://fgouget.free.fr/
Hiroshima '45 - Czernobyl '86 - Windows '95
More information about the wine-users