[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-gnubg] Building gnubg on Windows
From: |
Petr Kadlec |
Subject: |
[Bug-gnubg] Building gnubg on Windows |
Date: |
Fri, 02 Jan 2004 17:41:28 +0100 |
Hi!
I was thinking about trying some ideas in gnubg, so I wanted to build it
from source (under Windows, my Linux system is a bit out of order now...).
I presume you use mingw compiler to build it, but I tried MSVC++. I have
found some small problems with portability, but I was able to fix those.
(Is anyone interested in seeing the neccessary changes?) The build seems to
work, with some problems, so I would like to ask for a bit of advice:
1. When I click Hint/OK, the debug version fails on assert in free(),
called from GTK (via gtk_destroy_widget called on pwHint). Is this my
fault, or a problem in the gnubg? (I never worked with GTK, so I do not
want to hunt that.)
2. When I calibrated the speed, it was slightly worse than the public
build. So I tried to change the configuration so that it uses fastcall
calling convention (parameters via registers), but I failed -- because of
callback functions. I have tried to declare the functions that are used as
callbacks (e.g. in qsort) as cdecl (using a preprocessor symbol, of
course). But, GTK uses callbacks (like GtkDestroyNotify) without any
calling convention specification. So that I gave up, I didn't have the
energy to fix all these. And I am curious -- isn't there some standard way
how this could be solved?
Thanks,
Petr Kadlec
-- -----------------------------------------------------------
Nostalgia: The good old days multiplied by a bad memory...
- [Bug-gnubg] Building gnubg on Windows,
Petr Kadlec <=