FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour FWH 16.03 32 BIT
Posts: 1387
Joined: Fri May 23, 2008 01:33 PM
Re: FWH 16.03 32 BIT
Posted: Sun Apr 10, 2016 09:30 AM
Code (fw): Select all Collapse
   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 & MSVC 2022 & FWH 23.06
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: FWH 16.03 32 BIT
Posted: Sun Apr 10, 2016 10:00 AM

Hakan,

Try to link legacy_stdio_definitions.lib from MS

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1387
Joined: Fri May 23, 2008 01:33 PM
Re: FWH 16.03 32 BIT
Posted: Sun Apr 10, 2016 10:33 AM
Thank you Antonio,

Most of them are gone.

just.

Code (fw): Select all Collapse
   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 & MSVC 2022 & FWH 23.06
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: FWH 16.03 32 BIT
Posted: Sun Apr 10, 2016 10:54 AM

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

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: FWH 16.03 32 BIT
Posted: Sun Apr 10, 2016 11:00 AM

This seems the right version:

pragma BEGINDUMP

include <Windows.h>

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

FILE * __iob_func( void )
{
return ( FILE * ) _iob;
}

pragma ENDDUMP

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1387
Joined: Fri May 23, 2008 01:33 PM
Re: FWH 16.03 32 BIT
Posted: Sun Apr 10, 2016 11:07 AM

Antonio,

Unfortuanely,

Same error.

Regards,



Hakan ONEMLI



Harbour & MSVC 2022 & FWH 23.06
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: FWH 16.03 32 BIT
Posted: Sun Apr 10, 2016 11:20 AM

This one ?

hbssl.lib(ssl.obj) : error LNK2019: unresolved external symbol ___iob_func referenced in function _app_stdin

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1387
Joined: Fri May 23, 2008 01:33 PM
Re: FWH 16.03 32 BIT
Posted: Sun Apr 10, 2016 11:25 AM

yes

Regards,



Hakan ONEMLI



Harbour & MSVC 2022 & FWH 23.06
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: FWH 16.03 32 BIT
Posted: Sun Apr 10, 2016 11:34 AM

This may work:

pragma BEGINDUMP

include <Windows.h>

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

FILE * __iob_func( void )
{
return ( FILE * ) _iob;
}
}

pragma ENDDUMP

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1387
Joined: Fri May 23, 2008 01:33 PM
Re: FWH 16.03 32 BIT
Posted: Sun Apr 10, 2016 11:38 AM

It works now.

Thank you Antonio.

Regards,



Hakan ONEMLI



Harbour & MSVC 2022 & FWH 23.06
Posts: 1387
Joined: Fri May 23, 2008 01:33 PM
Re: FWH 16.03 32 BIT
Posted: Wed Apr 13, 2016 08:50 AM
Hi Antonio,

after 2015 and fwh 16.03 update, My application is not working in Windows XP.

Link line :
Code (fw): Select all Collapse
   "$(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 & MSVC 2022 & FWH 23.06
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: FWH 16.03 32 BIT
Posted: Wed Apr 13, 2016 09:09 AM
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.exe

Please compare both results and let me know if there are differences
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1387
Joined: Fri May 23, 2008 01:33 PM
Re: FWH 16.03 32 BIT
Posted: Wed Apr 13, 2016 12:54 PM
Antonio,

left side 2013
other side 2015



I dont know where to compare? :-)
Regards,



Hakan ONEMLI



Harbour & MSVC 2022 & FWH 23.06
Posts: 1387
Joined: Fri May 23, 2008 01:33 PM
Re: FWH 16.03 32 BIT
Posted: Thu Apr 14, 2016 06:21 AM

:cry:

Regards,



Hakan ONEMLI



Harbour & MSVC 2022 & FWH 23.06
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: FWH 16.03 32 BIT
Posted: Thu Apr 14, 2016 06:45 AM

Hakan,

Please email me the two EXEs into a zip file renamed as zop, thanks

regards, saludos

Antonio Linares
www.fivetechsoft.com