Page 2 of 8
Re: FWH 16.03 32 BIT
Posted: Sun Apr 10, 2016 9:30 am
by Horizon
Code: Select all | Expand
Creating library IcraW.lib and object IcraW.exp
SKeyLi32.lib(CompID_HardDrive.obj) : error LNK2001: unresolved external symbol _sprintf
SKeyLi32.lib(GetBios.obj) : error LNK2001: unresolved external symbol _sprintf
SKeyLi32.lib(CompnoPlus.obj) : error LNK2001: unresolved external symbol _sprintf
SKeyLi32.lib(CompID_WindowsInfo.obj) : error LNK2001: unresolved external symbol _sprintf
SKeyLi32.lib(CompID_WMI.obj) : error LNK2001: unresolved external symbol _sprintf
SKeyLi32.lib(Internal.obj) : error LNK2001: unresolved external symbol _sprintf
SKeyLi32.lib(LFCreate.obj) : error LNK2001: unresolved external symbol _sprintf
SKeyLi32.lib(LFOpen.obj) : error LNK2001: unresolved external symbol _sprintf
SKeyLi32.lib(CompID_ServerMAC.obj) : error LNK2001: unresolved external symbol _sprintf
hbssl.lib(ssl.obj) : error LNK2019: unresolved external symbol ___iob_func referenced in function _app_stdin
IcraW.exe : fatal error LNK1120: 2 unresolved externals
SKeyLi32.lib is the Protection Plus library from SoftwareKey.
How Can I solve this problem?
Re: FWH 16.03 32 BIT
Posted: Sun Apr 10, 2016 10:00 am
by Antonio Linares
Hakan,
Try to link legacy_stdio_definitions.lib from MS
Re: FWH 16.03 32 BIT
Posted: Sun Apr 10, 2016 10:33 am
by Horizon
Thank you Antonio,
Most of them are gone.
just.
Code: Select all | Expand
Creating library IcraW.lib and object IcraW.exp
hbssl.lib(ssl.obj) : error LNK2019: unresolved external symbol ___iob_func referenced in function _app_stdin
IcraW.exe : fatal error LNK1120: 1 unresolved externals
I have downloaded hbssl_32bits_vsc2015.zip from bitbucket and put it in \Harbour\Lib. Same.
Re: FWH 16.03 32 BIT
Posted: Sun Apr 10, 2016 10:54 am
by Antonio Linares
Hakan,
Please try to add this code to your main PRG:
#pragma BEGINDUMP
#include <Windows.h>
FILE * __iob_func( void )
{
return { * stdin, * stdout, * stderr };
}
#pragma ENDDUMP
Re: FWH 16.03 32 BIT
Posted: Sun Apr 10, 2016 11:00 am
by Antonio Linares
This seems the right version:
#pragma BEGINDUMP
#include <Windows.h>
FILE * _iob[] = { stdin, stdout, stderr };
FILE * __iob_func( void )
{
return ( FILE * ) _iob;
}
#pragma ENDDUMP
Re: FWH 16.03 32 BIT
Posted: Sun Apr 10, 2016 11:07 am
by Horizon
Antonio,
Unfortuanely,
Same error.
Re: FWH 16.03 32 BIT
Posted: Sun Apr 10, 2016 11:20 am
by Antonio Linares
This one ?
hbssl.lib(ssl.obj) : error LNK2019: unresolved external symbol ___iob_func referenced in function _app_stdin
Re: FWH 16.03 32 BIT
Posted: Sun Apr 10, 2016 11:25 am
by Horizon
yes
Re: FWH 16.03 32 BIT
Posted: Sun Apr 10, 2016 11:34 am
by Antonio Linares
This may work:
#pragma BEGINDUMP
#include <Windows.h>
extern "C" {
FILE * _iob[] = { stdin, stdout, stderr };
FILE * __iob_func( void )
{
return ( FILE * ) _iob;
}
}
#pragma ENDDUMP
Re: FWH 16.03 32 BIT
Posted: Sun Apr 10, 2016 11:38 am
by Horizon
It works now.
Thank you Antonio.
Re: FWH 16.03 32 BIT
Posted: Wed Apr 13, 2016 8:50 am
by Horizon
Hi Antonio,
after 2015 and fwh 16.03 update, My application is not working in Windows XP.
Link line :
Code: Select all | Expand
"$(VCDIR)"\bin\link @msvc.tmp /nologo /subsystem:WINDOWS,5.01 /force:multiple \
/NODEFAULTLIB:msvcrt /OUT:IcraW.exe> link.log
Error :

What Can I do?
Re: FWH 16.03 32 BIT
Posted: Wed Apr 13, 2016 9:09 am
by Antonio Linares
Hakan,
We need to identify what Windows API functions your EXE is linking
Please use this app to review your current EXE and your older EXE imported symbols:
https://bitbucket.org/fivetech/fivewin-contributions/downloads/peinfo.exePlease compare both results and let me know if there are differences
Re: FWH 16.03 32 BIT
Posted: Wed Apr 13, 2016 12:54 pm
by Horizon
Antonio,
left side 2013
other side 2015

I dont know where to compare?

Re: FWH 16.03 32 BIT
Posted: Thu Apr 14, 2016 6:21 am
by Horizon
Re: FWH 16.03 32 BIT
Posted: Thu Apr 14, 2016 6:45 am
by Antonio Linares
Hakan,
Please email me the two EXEs into a zip file renamed as zop, thanks