Borland C++-5.5 (free) compiler does not install(?)

g.patel at wanadoo.fr g.patel at wanadoo.fr
Fri Apr 6 05:18:19 CDT 2001


On 05 Apr 01 12:59:17 -0800, "Charlie Gibbs" <cgibbs at sky.bus.com>
wrote:
<snip>
> It's the linker
>(ILINK32.EXE) that hangs.  I've run many tests with both BCB4 and
>the version 5 free download.  Too bad - I'd love to get it running
>under Wine myself.

The following hack is fixing Bcb4. I don't know about bcc5.

Gerard

--- virtual.c.orig      Tue Feb 27 03:09:18 2001
+++ virtual.c   Fri Apr  6 12:11:41 2001
@@ -1045,6 +1045,8 @@
 
     if (addr >= (void*)0xc0000000) return 0;
 
+    VirtualAlloc( 0x80000000, 0x1000, MEM_RESERVE | MEM_SYSTEM,
PAGE_EXECUTE_READWRITE );
+
     base = ROUND_ADDR( addr );
 
     /* Find the view containing the address */
@@ -1097,6 +1099,8 @@
     info->BaseAddress    = (LPVOID)base;
     info->AllocationBase = (LPVOID)alloc_base;
     info->RegionSize     = size - (base - alloc_base);
+    if ((info->BaseAddress + info->RegionSize) > 0xc0000000)
+        info->RegionSize = 0xc0000000 - (DWORD)info->BaseAddress;
     return sizeof(*info);
 }
                         




More information about the wine-users mailing list