On Thu, 31 Mar 2004, [EMAIL PROTECTED] wrote:
> Hi,
>
> I'm starting to use the latest winelib (wine-20040309 release) to try
> eventually compiling an windows MFC app I wrote. Before attempting this
> however, I'm following all directions in the winelib user guide, but the
> Test Drive fails and so it tells me to post to this mailing list.
The problem is that the Winelib User Guide is very out of date.
winemaker has been changed recently and no longer integrates with
autoconf. Also it uses winegcc and winebuild instead of calling gcc
directly.
Finally it does not support dlls though now that the required support
has been added to winegcc it should be possible.
[...]
> winebuild -o winemine2.exe.dbg.c --debug -C. dialog.c main.c
> winegcc -c -mno-cygwin -I. -o winemine2.exe.dbg.o winemine2.exe.dbg.c
> winegcc -c -mno-cygwin -I. -o dialog.o dialog.c
> winegcc -c -mno-cygwin -I. -o main.o main.c
> wrc -I. -foEn.res En.rc
> En.rc:23:22: Error: syntax error
However this error has nothing to do with the above issues.
winemaker automatically creates Makefiles by analyzing the source code.
However this is an impossible task to get right in 100% of the cases
(even for a human can be hard to do right). So some heuristics are used
that work most of the time.
Unfortunately the person who wrote the 'Test Drive' chose a case where
the heuristics fail and did not mention it. The error is caused by the
presence of multiple rc files (maybe there was only one rc file at the
time the Test Driver was written). Only one RC file is supposed to be
compiled but winemaker does not know that and wouldn't know which one is
supposed to be compiled anyway.
So it tries to compile them all and this is what causes the error. Just
edit the generated Makefile and edit the list of RC files so only
rsrc.rc is listed and it should work better.
--
Francois Gouget [EMAIL PROTECTED]http://fgouget.free.fr/
If it stinks, it's chemistry. If it moves, it's biology.
If it does not work, It's computer science.