help with building with winelib on Mac os x
Jeff Cooper
j.cooper1 at comcast.net
Tue Jul 20 15:48:17 CDT 2004
I am trying to build a "Hello World" app with winelib on Mac os x
I have done so by mimicking how winemine is built or modifying the
winemine make file to work with the hello world app. This uses GCC to
build correct?..
I then try winemaker to create a make file, and when trying to build
with that makefile I get lots of errors.
This uses winegcc correct?.
I think that is where the problem is...
Any Ideas? help? What am I missing?
Error:
winebuild -o main.exe.dbg.c --debug -C. main.c
winegcc -c -mno-cygwin -o main.exe.dbg.o main.exe.dbg.c
winegcc -c -mno-cygwin -o main.o main.c
In file included from /usr/local/include/wine/windows/winnt.h:24,
from /usr/local/include/wine/windows/windef.h:203,
from /usr/local/include/wine/windows/windows.h:38,
from main.c:1:
/usr/local/include/wine/windows/basetsd.h:154:3: #error Unknown CPU
architecture!
In file included from /usr/local/include/wine/windows/winnt.h:29,
from /usr/local/include/wine/windows/windef.h:203,
from /usr/local/include/wine/windows/windows.h:38,
from main.c:1:
/usr/local/include/wine/msvcrt/string.h:58: warning: conflicting types
for built-in function `memcmp'
/usr/local/include/wine/msvcrt/string.h:59: warning: conflicting types
for built-in function `memcpy'
/usr/local/include/wine/msvcrt/string.h:61: warning: conflicting types
for built-in function `memset'
/usr/local/include/wine/msvcrt/string.h:70: warning: conflicting types
for built-in function `strncat'
/usr/local/include/wine/msvcrt/string.h:71: warning: conflicting types
for built-in function `strncmp'
/usr/local/include/wine/msvcrt/string.h:72: warning: conflicting types
for built-in function `strncpy'
In file included from /usr/local/include/wine/windows/windef.h:203,
from /usr/local/include/wine/windows/windows.h:38,
from main.c:1:
/usr/local/include/wine/windows/winnt.h:1170:2: #error You need to
define a CONTEXT for your CPU
In file included from /usr/local/include/wine/windows/windef.h:203,
from /usr/local/include/wine/windows/windows.h:38,
from main.c:1:
/usr/local/include/wine/windows/winnt.h:1173: error: parse error before
'*' token
/usr/local/include/wine/windows/winnt.h:1173: warning: data definition
has no type or storage class
/usr/local/include/wine/windows/winnt.h:1489: error: parse error before
"PCONTEXT"
/usr/local/include/wine/windows/winnt.h:1489: warning: no semicolon at
end of struct or union
/usr/local/include/wine/windows/winnt.h:1490: warning: data definition
has no type or storage class
/usr/local/include/wine/windows/winnt.h:1502: error: parse error before
"PCONTEXT"
/usr/local/include/wine/windows/winnt.h:1514: error: parse error before
"ExceptionInfo"
/usr/local/include/wine/windows/winnt.h:1514: warning: `__stdcall__'
attribute directive ignored
/usr/local/include/wine/windows/winnt.h:1515: error: parse error before
"ExceptionInfo"
/usr/local/include/wine/windows/winnt.h:1515: warning: `__stdcall__'
attribute directive ignored
/usr/local/include/wine/windows/winnt.h:1518: error: parse error before
"epointers"
/usr/local/include/wine/windows/winnt.h:1518: warning: `__stdcall__'
attribute directive ignored
...{similar errors with more header files}..
/usr/local/include/wine/windows/imm.h:543: warning: `__stdcall__'
attribute directive ignored
main.c:7: warning: `__stdcall__' attribute directive ignored
winegcc -mwindows -mno-cygwin -o main.exe.so main.o main.exe.dbg.o
-lodbc32 -lole32 -loleaut32 -lwinspool -luuid
ld: table of contents for archive: /usr/local/lib/wine/libuuid.a is out
of date; rerun ranlib(1) (can't load from it)
winebuild: ld -r failed with status 256
winegcc: winebuild failed.
make: *** [main.exe.so] Error 2
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 3933 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-devel/attachments/20040720/acdbc9eb/attachment.bin
More information about the wine-devel
mailing list