-
Horizon
- Posts: 997
- Joined: Fri May 23, 2008 1:33 pm
Post
by Horizon »
Code: Select all
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?
Regards,
Hakan ONEMLI
Harbour & VS 2019 & FWH 20.12
-
Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
-
Contact:
Post
by Antonio Linares »
Hakan,
Try to link legacy_stdio_definitions.lib from MS
-
Horizon
- Posts: 997
- Joined: Fri May 23, 2008 1:33 pm
Post
by Horizon »
Thank you Antonio,
Most of them are gone.
just.
Code: Select all
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.
Regards,
Hakan ONEMLI
Harbour & VS 2019 & FWH 20.12
-
Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
-
Contact:
Post
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
-
Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
-
Contact:
Post
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
-
Horizon
- Posts: 997
- Joined: Fri May 23, 2008 1:33 pm
Post
by Horizon »
Antonio,
Unfortuanely,
Same error.
Regards,
Hakan ONEMLI
Harbour & VS 2019 & FWH 20.12
-
Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
-
Contact:
Post
by Antonio Linares »
This one ?
hbssl.lib(ssl.obj) : error LNK2019: unresolved external symbol ___iob_func referenced in function _app_stdin
-
Horizon
- Posts: 997
- Joined: Fri May 23, 2008 1:33 pm
Post
by Horizon »
yes
Regards,
Hakan ONEMLI
Harbour & VS 2019 & FWH 20.12
-
Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
-
Contact:
Post
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
-
Horizon
- Posts: 997
- Joined: Fri May 23, 2008 1:33 pm
Post
by Horizon »
It works now.
Thank you Antonio.
Regards,
Hakan ONEMLI
Harbour & VS 2019 & FWH 20.12
-
Horizon
- Posts: 997
- Joined: Fri May 23, 2008 1:33 pm
Post
by Horizon »
Hi Antonio,
after 2015 and fwh 16.03 update, My application is not working in Windows XP.
Link line :
Code: Select all
"$(VCDIR)"\bin\link @msvc.tmp /nologo /subsystem:WINDOWS,5.01 /force:multiple \
/NODEFAULTLIB:msvcrt /OUT:IcraW.exe> link.log
Error :
What Can I do?
Regards,
Hakan ONEMLI
Harbour & VS 2019 & FWH 20.12
-
Horizon
- Posts: 997
- Joined: Fri May 23, 2008 1:33 pm
Post
by Horizon »
Antonio,
left side 2013
other side 2015
I dont know where to compare?
Regards,
Hakan ONEMLI
Harbour & VS 2019 & FWH 20.12
-
Horizon
- Posts: 997
- Joined: Fri May 23, 2008 1:33 pm
Post
by Horizon »
Regards,
Hakan ONEMLI
Harbour & VS 2019 & FWH 20.12
-
Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
-
Contact:
Post
by Antonio Linares »
Hakan,
Please email me the two EXEs into a zip file renamed as zop, thanks