I am trying to compile MFC with latest CVS checout, I copied the source from the windows MFC dir and also the include dir (both for MFC and the VC98 include dir). I ran winemaker --interactive . and specified the -I paths. I got a couple of makefiles. Now if I do a make I get this error.
[manju@manju MSVS]$ make make[1]: Entering directory `/home/manju/MSVS/mfc/src' wineg++ -mwindows -mno-cygwin -o mfcdb.so mfcdb.res mfcdb.dbg.o -lodbc32 -lole32 -loleaut32 -lwinspool -luuid mfcdb.exe-ueIUVp.spec.c:451: error: invalid conversion from `void (*)()' to ` void*' winegcc: gcc failed. make[1]: *** [mfcdb.so] Error 2 make[1]: Leaving directory `/home/manju/MSVS/mfc/src' make: *** [mfc/src] Error 2
Any ideas/tips. Am I even following the correct procedure ? There doesn't seem to be any document detailing this process. Any tips/instructions/suggestions would be greatly appreciated. I am doing this on a fedora core 1 (with prelink fixed and stuff, wine runs well), with a 2 Ghz P4 machine. If any other info is needed please feel free.
Thanks in advance, Manju
On April 15, 2004 7:27 am, Manjunath Sripadarao wrote:
Any ideas/tips. Am I even following the correct procedure ? There doesn't seem to be any document detailing this process. Any tips/instructions/suggestions would be greatly appreciated.
You are on the right track, but you've probably hit a winegcc bug. Can you please run that command line with -v:
wineg++ -v -mwindows -mno-cygwin -o mfcdb.so mfcdb.res mfcdb.dbg.o -lodbc32 -lole32 -loleaut32 -lwinspool -luuid
and report back the results? Thanks.
Dimitrie O. Paun wrote:
On April 15, 2004 7:27 am, Manjunath Sripadarao wrote:
Any ideas/tips. Am I even following the correct procedure ? There doesn't seem to be any document detailing this process. Any tips/instructions/suggestions would be greatly appreciated.
You are on the right track, but you've probably hit a winegcc bug. Can you please run that command line with -v:
wineg++ -v -mwindows -mno-cygwin -o mfcdb.so mfcdb.res mfcdb.dbg.o -lodbc32 -lole32 -loleaut32 -lwinspool -luuid
and report back the results? Thanks.
Thanks for the quick reply.
[manju@manju MSVS]$ make make[1]: Entering directory `/home/manju/MSVS/mfc/src' wineg++ -v -mwindows -mno-cygwin -o mfcdb.so mfcdb.res mfcdb.dbg.o -lodbc32 -lole32 -loleaut32 -lwinspool -luuid winebuild -o mfcdb.exe-EX63Tl.spec.c --exe mfcdb.exe --subsystem windows -L/home/manju/lib/wine -L/home/manju/lib -L/usr/lib -L/usr/local/lib -L/lib -rmfcdb.res mfcdb.dbg.o -lodbc32 -lole32 -loleaut32 -lwinspool /home/manju/lib/wine/libuuid.a -lmsvcrt -lshell32 -lcomdlg32 -lgdi32 -ladvapi32 -luser32 -lkernel32 gcc -fshort-wchar -DWINE_UNICODE_NATIVE -D_REENTRANT -fPIC -I/home/manju/include/wine/msvcrt -D__MSVCRT__ -I/home/manju/include/wine/windows -DWIN32 -D_WIN32 -D__WIN32 -D__WIN32__ -D__WINNT -D__WINNT__ -D__stdcall=__attribute__((__stdcall__)) -D__cdecl=__attribute__((__cdecl__)) -D__fastcall=__attribute__((__fastcall__)) -D_stdcall=__attribute__((__stdcall__)) -D_cdecl=__attribute__((__cdecl__)) -D_fastcall=__attribute__((__fastcall__)) -D__declspec(x)=__declspec_##x -D_declspec(x)=__declspec_##x -D__declspec_align(x)=__attribute__((aligned(x))) -D__declspec_allocate(x)=__attribute__((section(x))) -D__declspec_deprecated=__attribute__((deprecated)) -D__declspec_dllimport=__attribute__((dllimport)) -D__declspec_dllexport=__attribute__((dllexport)) -D__declspec_naked=__attribute__((naked)) -D__declspec_noinline=__attribute__((noinline)) -D__declspec_noreturn=__attribute__((noreturn)) -D__declspec_nothrow=__attribute__((nothrow)) -D__declspec_novtable=__attribute__(()) -D__declspec_selectany=__attribute__((weak)) -D__declspec_thread=__thread -D__WINE__ -D__int8=char -D__int16=short -D__int32=int -D__int64=long long -c -o mfcdb.exe-EX63Tl.spec-iqe4kD.o -xc++ -v mfcdb.exe-EX63Tl.spec.c Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.3.2/specs Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --host=i386-redhat-linux Thread model: posix gcc version 3.3.2 20031022 (Red Hat Linux 3.3.2-1) /usr/lib/gcc-lib/i386-redhat-linux/3.3.2/cc1plus -quiet -v -I/home/manju/include/wine/msvcrt -I/home/manju/include/wine/windows -D__GNUC__=3 -D__GNUC_MINOR__=3 -D__GNUC_PATCHLEVEL__=2 -D_GNU_SOURCE -DWINE_UNICODE_NATIVE -D_REENTRANT -D__MSVCRT__ -DWIN32 -D_WIN32 -D__WIN32 -D__WIN32__ -D__WINNT -D__WINNT__ -D__stdcall=__attribute__((__stdcall__)) -D__cdecl=__attribute__((__cdecl__)) -D__fastcall=__attribute__((__fastcall__)) -D_stdcall=__attribute__((__stdcall__)) -D_cdecl=__attribute__((__cdecl__)) -D_fastcall=__attribute__((__fastcall__)) -D__declspec(x)=__declspec_##x -D_declspec(x)=__declspec_##x -D__declspec_align(x)=__attribute__((aligned(x))) -D__declspec_allocate(x)=__attribute__((section(x))) -D__declspec_deprecated=__attribute__((deprecated)) -D__declspec_dllimport=__attribute__((dllimport)) -D__declspec_dllexport=__attribute__((dllexport)) -D__declspec_naked=__attribute__((naked)) -D__declspec_noinline=__attribute__((noinline)) -D__declspec_noreturn=__attribute__((noreturn)) -D__declspec_nothrow=__attribute__((nothrow)) -D__declspec_novtable=__attribute__(()) -D__declspec_selectany=__attribute__((weak)) -D__declspec_thread=__thread -D__WINE__ -D__int8=char -D__int16=short -D__int32=int -D__int64=long long mfcdb.exe-EX63Tl.spec.c -D__GNUG__=3 -quiet -dumpbase mfcdb.exe-EX63Tl.spec.c -auxbase-strip mfcdb.exe-EX63Tl.spec-iqe4kD.o -version -fshort-wchar -fPIC -o /tmp/ccCab4lu.s GNU C++ version 3.3.2 20031022 (Red Hat Linux 3.3.2-1) (i386-redhat-linux) compiled by GNU C version 3.3.2 20031022 (Red Hat Linux 3.3.2-1). GGC heuristics: --param ggc-min-expand=63 --param ggc-min-heapsize=63308 ignoring nonexistent directory "/usr/i386-redhat-linux/include" #include "..." search starts here: #include <...> search starts here: /home/manju/include/wine/msvcrt /home/manju/include/wine/windows /usr/include/c++/3.3.2 /usr/include/c++/3.3.2/i386-redhat-linux /usr/include/c++/3.3.2/backward /usr/local/include /usr/lib/gcc-lib/i386-redhat-linux/3.3.2/include /usr/include End of search list. mfcdb.exe-EX63Tl.spec.c:451: error: invalid conversion from `void (*)()' to ` void*' winegcc: gcc failed. make[1]: *** [mfcdb.so] Error 2 make[1]: Leaving directory `/home/manju/MSVS/mfc/src' make: *** [mfc/src] Error 2 [manju@manju MSVS]$
Thanks, Manju
On Thu, 15 Apr 2004, Manjunath Sripadarao wrote:
wineg++ -v -mwindows -mno-cygwin -o mfcdb.so mfcdb.res mfcdb.dbg.o -lodbc32 -lole32 -loleaut32 -lwinspool -luuid
Thanks for the quick reply.
What version of Wine are you using? I can't make sense of this. Your command line doesn't have any -xc++ option, where does this come from:
make[1]: Entering directory `/home/manju/MSVS/mfc/src' wineg++ -v -mwindows -mno-cygwin -o mfcdb.so mfcdb.res mfcdb.dbg.o -lodbc32 -lole32 -loleaut32 -lwinspool -luuid winebuild -o mfcdb.exe-EX63Tl.spec.c --exe mfcdb.exe --subsystem windows -L/home/manju/lib/wine -L/home/manju/lib -L/usr/lib -L/usr/local/lib -L/lib -rmfcdb.res mfcdb.dbg.o -lodbc32 -lole32 -loleaut32 -lwinspool /home/manju/lib/wine/libuuid.a -lmsvcrt -lshell32 -lcomdlg32 -lgdi32 -ladvapi32 -luser32 -lkernel32 gcc -fshort-wchar -DWINE_UNICODE_NATIVE -D_REENTRANT -fPIC -I/home/manju/include/wine/msvcrt -D__MSVCRT__ -I/home/manju/include/wine/windows -DWIN32 -D_WIN32 -D__WIN32 -D__WIN32__ -D__WINNT -D__WINNT__ -D__stdcall=__attribute__((__stdcall__)) -D__cdecl=__attribute__((__cdecl__)) -D__fastcall=__attribute__((__fastcall__)) -D_stdcall=__attribute__((__stdcall__)) -D_cdecl=__attribute__((__cdecl__)) -D_fastcall=__attribute__((__fastcall__)) -D__declspec(x)=__declspec_##x -D_declspec(x)=__declspec_##x -D__declspec_align(x)=__attribute__((aligned(x))) -D__declspec_allocate(x)=__attribute__((section(x))) -D__declspec_deprecated=__attribute__((deprecated)) -D__declspec_dllimport=__attribute__((dllimport)) -D__declspec_dllexport=__attribute__((dllexport)) -D__declspec_naked=__attribute__((naked)) -D__declspec_noinline=__attribute__((noinline)) -D__declspec_noreturn=__attribute__((noreturn)) -D__declspec_nothrow=__attribute__((nothrow)) -D__declspec_novtable=__attribute__(()) -D__declspec_selectany=__attribute__((weak)) -D__declspec_thread=__thread -D__WINE__ -D__int8=char -D__int16=short -D__int32=int -D__int64=long long -c -o mfcdb.exe-EX63Tl.spec-iqe4kD.o -xc++ -v mfcdb.exe-EX63Tl.spec.c
^^^^^
Are you by any chance using an old version of winegcc? Can you please upgrade to the latest winegcc from head?