Page 4 of 4

Re: Build your FWH app using hbmk2.exe and MSVC 32&64

PostPosted: Wed Jun 05, 2024 8:37 am
by Enrico Maria Giordano
Horizon wrote:My main goal is to compile the program with Hbmk2.


Why do you want to use such a bad and bugged tool instead of a simple batch? I don't understand...

Re: Build your FWH app using hbmk2.exe and MSVC 32&64

PostPosted: Wed Jun 05, 2024 1:27 pm
by Horizon
Hi Antonio, Enrico,

When I add /NODEFAULTLIB:libucrt and libucrt, ucrt libs, this error comes.

A similar mistake happened to me before. We added the following code upon Antonio's suggestion as a workaround.

Code: Select all  Expand view
#pragma BEGINDUMP

#include <Windows.h>

extern "C" {
FILE * _iob[] = { stdin, stdout, stderr };

FILE * __iob_func( void )
{
return ( FILE * ) _iob;
}
}
#pragma ENDDUMP
 

Re: Build your FWH app using hbmk2.exe and MSVC 32&64

PostPosted: Wed Jun 05, 2024 1:57 pm
by Enrico Maria Giordano
I can only say that I have no problem at all with Harbour/xHarbour and MSC32, MSC64, BCC32 and BCC64.

Re: Build your FWH app using hbmk2.exe and MSVC 32&64

PostPosted: Wed Jun 05, 2024 2:30 pm
by Antonio Linares
Dear Hakan,

If you use the files that I provided you and the Harbour build that I told you, you should not have any problems at all