Discussion:
64 bit builds broken
(too old to reply)
Enrico Maria Giordano
2024-01-24 15:06:18 UTC
Permalink
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
<***@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
2024-01-24 15:08:46 UTC
Permalink
Post by Enrico Maria Giordano
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
2022-11-14 10:47 UTC+0100 Enrico Maria Giordano
  * 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

http://www.emagsoftware.it
http://www.emagsoftware.it/emgmusic
http://www.emagsoftware.it/spectrum
http://www.emagsoftware.it/tbosg
Enrico Maria Giordano
2024-01-24 19:07:13 UTC
Permalink
Post by Enrico Maria Giordano
I forgot to mention that now I get the following errors compiling a PRG
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

http://www.emagsoftware.it
http://www.emagsoftware.it/emgmusic
http://www.emagsoftware.it/spectrum
http://www.emagsoftware.it/tbosg
Enrico Maria Giordano
2024-01-25 11:15:35 UTC
Permalink
Post by Enrico Maria Giordano
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...
--
Enrico Maria Giordano

http://www.emagsoftware.it
http://www.emagsoftware.it/emgmusic
http://www.emagsoftware.it/spectrum
http://www.emagsoftware.it/tbosg
Ron Pinkas
2024-02-08 02:03:42 UTC
Permalink
Post by Enrico Maria Giordano
Post by Enrico Maria Giordano
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
2024-02-08 09:49:54 UTC
Permalink
Post by Ron Pinkas
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
<***@emagsoftware.it>
* source\rtl\dllcall.c
! always define LoadLibrary(), FreeLibrary() and GetLastError()
functions for Windows builds
--
Enrico Maria Giordano

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