Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

64 bit builds broken

89 views
Skip to first unread message

Enrico Maria Giordano

unread,
Jan 24, 2024, 10:06:20 AMJan 24
to
Hi Ron, these changea broke 64 bit builds:

2023-12-26 22:32 UTC-0500 Ron Pinkas <ronpinkas/AT/gmail/com>
* source\rtl\dllcall.c
* Fixed wrong nested structure of #ifdefs
! Fixed #ifdef HB_OS_WIN_32 to add '&& ! defined( HB_OS_WIN_64 )'
* winmake/makefile.bc
+ Added NODLL_FLAG set to -DNODLL when HB_ARCH==w64

It reverted my previous change:

2022-11-14 10:47 UTC+0100 Enrico Maria Giordano
<e.m.gi...@emagsoftware.it>
* source\rtl\dllcall.c
! always define LoadLibrary(), FreeLibrary() and GetLastError()
functions for Win builds

How did you do that? Can I fix it?

--
Enrico Maria Giordano

http://www.emagsoftware.it
http://www.emagsoftware.it/emgmusic
http://www.emagsoftware.it/spectrum
http://www.emagsoftware.it/tbosg

Enrico Maria Giordano

unread,
Jan 24, 2024, 10:08:49 AMJan 24
to


Il 24/01/2024 16:06, Enrico Maria Giordano ha scritto:

> Hi Ron, these changea broke 64 bit builds:
>
> 2023-12-26 22:32 UTC-0500 Ron Pinkas <ronpinkas/AT/gmail/com>
>   * source\rtl\dllcall.c
>     * Fixed wrong nested structure of #ifdefs
>     ! Fixed #ifdef HB_OS_WIN_32 to add '&& ! defined( HB_OS_WIN_64 )'
>   * winmake/makefile.bc
>     + Added NODLL_FLAG set to -DNODLL when HB_ARCH==w64
>
> It reverted my previous change:
>
> 2022-11-14 10:47 UTC+0100 Enrico Maria Giordano
> <e.m.gi...@emagsoftware.it>
>   * source\rtl\dllcall.c
>     ! always define LoadLibrary(), FreeLibrary() and GetLastError()
> functions for Win builds
>
> How did you do that? Can I fix it?

I forgot to mention that now I get the following errors compiling a PRG
sample with a 64 bit compiler:

error LNK2001: unresolved external symbol HB_FUN_GETLASTERROR
error LNK2001: unresolved external symbol HB_FUN_LOADLIBRARY
error LNK2001: unresolved external symbol HB_FUN_FREELIBRARY

Enrico Maria Giordano

unread,
Jan 24, 2024, 2:07:17 PMJan 24
to


Il 24/01/2024 16:08, Enrico Maria Giordano ha scritto:

> I forgot to mention that now I get the following errors compiling a PRG
> sample with a 64 bit compiler:
>
> error LNK2001: unresolved external symbol HB_FUN_GETLASTERROR
> error LNK2001: unresolved external symbol HB_FUN_LOADLIBRARY
> error LNK2001: unresolved external symbol HB_FUN_FREELIBRARY

This is a sample:

FUNCTION MAIN()

? GETLASTERROR()

INKEY( 0 )

RETURN NIL

Result with MSC32:

2

Result with MSC64:

TEST.obj : error LNK2001: unresolved external symbol HB_FUN_GETLASTERROR

I think that the 3 wrappers GETLASTERROR, LOADLIBRARY and FREELIBRARY
should always be available, 32 bit and 64 bit under Windows.

Enrico Maria Giordano

unread,
Jan 25, 2024, 6:15:38 AMJan 25
to


Il 24/01/2024 20:07, Enrico Maria Giordano ha scritto:

> I think that the 3 wrappers GETLASTERROR, LOADLIBRARY and FREELIBRARY
> should always be available, 32 bit and 64 bit under Windows.

Ron, I'm still waiting for your OK...

Ron Pinkas

unread,
Feb 7, 2024, 9:03:46 PMFeb 7
to
Enrico Maria Giordano wrote:
>
>
> Il 24/01/2024 20:07, Enrico Maria Giordano ha scritto:
>
> > I think that the 3 wrappers GETLASTERROR, LOADLIBRARY and FREELIBRARY
> > should always be available, 32 bit and 64 bit under Windows.
>
> Ron, I'm still waiting for your OK...
>

Sorry Enrico, I did not get here till just now - ye, its ok - sorry.

Enrico Maria Giordano

unread,
Feb 8, 2024, 4:49:56 AMFeb 8
to


Il 08/02/2024 03:03, Ron Pinkas ha scritto:

> Sorry Enrico, I did not get here till just now - ye, its ok - sorry.

Never mind, fixed with this:

2024-01-26 23:50 UTC+0100 Enrico Maria Giordano
<e.m.gi...@emagsoftware.it>
* source\rtl\dllcall.c
! always define LoadLibrary(), FreeLibrary() and GetLastError()
functions for Windows builds
0 new messages