Building the filecopy plugin for windows

Herbert König herbertkoenig at gmx.net
Sat Jun 11 11:43:32 UTC 2005


Hello Tim,

TR> It's hard to be precise but it looks like you must have some
TR> small (usually trivial, like a : instead of a ; ) mistake on line
TR> 69 or just before it.

putting the error with using stat.h to the beginning was a wrong clue.
There I really blundered by deleting the # from #include when removing
the comments.

So again:
When not including winbase.h everything is compiled fine until the
final linking process unsurprisingly finds out that it can't link
CopyFile. When in including winbase.h I get the error at the end of
this mail.

This also happens, if I only use
/* #include <winbase.h>  */

static int copy(char *from, char *to)
{
  int result = 1;
  return result;
}

This compiles fine but uncommenting the include does the weird trick.
After deleting the created.lib that is.

Maybe one more thing:

I've been desperate enough to try it under win 98 again. The problem
with win 98 I reported earlier was that the batchfile seemed to contain
unix style linefeeds. Removing them made everything compilable under
win 98 too, as long as I don't use winbase.h. May it be this kind of
problem? But I guess gnu tools should recognize unix file formats,
even the windows king.

Thanks for the other reply too, that shortened the cycle.

Best regards,
Herbert                            mailto:herbertkoenig at gmx.net

F:\squeak_3_7_vmbuild\platforms\win32>build

F:\squeak_3_7_vmbuild\platforms\win32>make -f Makefile.mingw32
make[1]: Entering directory `F:/squeak_3_7_vmbuild/platforms/win32/plugins/FileC
opyPlugin'
gcc -o ./FileCopyPlugin.o -g -mpentium -mwindows -O3 -fomit-frame-pointer -funro
ll-loops -fschedule-insns2 -I. -I../../ -I../..//vm -Ic:/dx7sdk/include  -DWIN32
_FILE_SUPPORT -DNO_STD_FILE_SUPPORT -DNDEBUG -DLSB_FIRST -DX86 -DSQUEAK_BUILTIN_
PLUGIN -c FileCopyPlugin.c
gcc -o ./sqWindowsFileCopyPlugin.o -g -mpentium -mwindows -O3 -fomit-frame-point
er -funroll-loops -fschedule-insns2 -I. -I../../ -I../..//vm -Ic:/dx7sdk/include
  -DWIN32_FILE_SUPPORT -DNO_STD_FILE_SUPPORT -DNDEBUG -DLSB_FIRST -DX86 -DSQUEAK
_BUILTIN_PLUGIN -c sqWindowsFileCopyPlugin.c
In file included from sqWindowsFileCopyPlugin.c:21:
C:\gnutools\bin\..\lib\gcc-lib\i386-mingw32\2.95.2\..\..\..\..\i386-mingw32\incl
ude\winbase.h:499: parse error before `DWORD'
C:\gnutools\bin\..\lib\gcc-lib\i386-mingw32\2.95.2\..\..\..\..\i386-mingw32\incl
ude\winbase.h:499: warning: no semicolon at end of struct or union
C:\gnutools\bin\..\lib\gcc-lib\i386-mingw32\2.95.2\..\..\..\..\i386-mingw32\incl
ude\winbase.h:500: warning: data definition has no type or storage class




More information about the Squeak-dev mailing list