winelib and msvcrt/stdio.h

brian r randomaccess at canada-11.com
Wed Jul 18 14:37:41 CDT 2001


Hi,
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>.
e.g.,
/usr/include/wine/msvcrt/stdio.h:66: syntax error before '('
This line is:
typedef struct MSVCRT(_iobuf)

Is it possible to do this with C/C++?  I am assuming it is a Windows thing.  My version of wine is: wine-20010510-1.

I have attached an edited portion of compile errors and my version of msvcrt/stdio.h.


Brian


_____________________________________________________________
Sign up for FREE email from canada-11 at http://www.canada-11.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: stdio.h
Type: application/octet-stream
Size: 7145 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-users/attachments/20010718/f2e5ff53/stdio.obj
-------------- next part --------------
make -k 
g++ -c -g -O2 -fpermissive -fno-for-scope  -D_REENTRANT -DWINELIB -I/usr/X11R6/include  -I. -I/usr/include/wine
g++ -c -g -O2 -fpermissive -fno-for-scope  -D_REENTRANT -DWINELIB -I/usr/X11R6/include  -I. -I/usr/include/wine
In file included from /usr/include/wine/msvcrt/io.h:11,

/usr/include/wine/msvcrt/stdio.h:66: syntax error before `{'
/usr/include/wine/msvcrt/stdio.h:75: parse error before `}'
/usr/include/wine/msvcrt/stdio.h:75: aggregate `MSVCRT FILE' has 
incomplete type and cannot be initialized
/usr/include/wine/msvcrt/stdio.h:77: `fpos_t' was not declared in this 
scope
/usr/include/wine/msvcrt/stdio.h:77: typedef declaration includes an 
initializer
/usr/include/wine/msvcrt/stdio.h:77: typedef `MSVCRT' is initialized
/usr/include/wine/msvcrt/stdio.h:77: conflicting types for `typedef 
long int MSVCRT'
/usr/include/wine/msvcrt/stdio.h:65: previous declaration as `struct 
MSVCRT'
/usr/include/wine/msvcrt/stdio.h:80: conflicting types for `typedef 
unsigned int (MSVCRT) (unsigned int)'


More information about the wine-users mailing list