MSVC 2017 Try

Horizon
Posts: 997
Joined: Fri May 23, 2008 1:33 pm

Re: MSVC 2017 Try

Post by Horizon »

Hi Antonio,

Nighmare is back.

My next error :

Windows XP : As far as I see, There is not any problem.

Windows 7 : 1) The error is that when I quit from my application (not QUIT command, normally RETURN command in main procedure), after 1-10 second windows says "IcraW.exe has stopped working"

2) Same error occurs when pressing quit button in errordialog if any error occurs.

Windows 10 : 1) There is not any error when exit from my application normally.
2) Same error occurs when pressing quit button in errordialog if any error occurs like w7.



Explanation error when pressing quit button in Error dialog (Errsysw)

First, I have not any change in Errsysw. I used to it with default usage. I have not linked from my mak file.

After this error, I have changed like below and add my mak file.

Code: Select all

   if lRet == nil .or. ( !LWRunning() .and. lRet )
      SET RESOURCES TO
      ErrorLevel( 1 )
      // Add these lines if using MDI child windows with dialogboxes
      // for n = 1 to Len( GetAllWin() )
      //    if ValType( GetAllWin()[ n ] ) == "O"
      //       GetAllWin()[ n ]:UnLink()
      //    endif
      // next
      ? "BEFORE QUIT"
      QUIT              // must be QUIT !!!
      ? "AFTER QUIT"
   endif
When I press QUIT button. Firstly, it says BEFORE QUIT, then exit programs, then windows says "IcraW.exe has stopped working"

When you read my previous link, thats why gave up MSVC 2015.
Regards,

Hakan ONEMLI

Harbour & VS 2019 & FWH 20.12
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: MSVC 2017 Try

Post by Antonio Linares »

Hakan,

Please try with this new Harbour for VSC2017:

https://bitbucket.org/fivetech/harbour- ... 170325.zip
regards, saludos

Antonio Linares
www.fivetechsoft.com
Horizon
Posts: 997
Joined: Fri May 23, 2008 1:33 pm

Re: MSVC 2017 Try

Post by Horizon »

Hi Antonio,

Can you explain more? I could not found win-make.exe

or you can build these libs ?

Thanks,

Antonio Linares wrote:Building Harbour 32 bits with VSC2017

go32.bat

Code: Select all

call "%ProgramFiles(x86)%\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" x86
set HB_WITH_OPENSSL=c:\OpenSSL-Win32\include
win-make.exe
Regards,

Hakan ONEMLI

Harbour & VS 2019 & FWH 20.12
Horizon
Posts: 997
Joined: Fri May 23, 2008 1:33 pm

Re: MSVC 2017 Try

Post by Horizon »

Hi,

I have tried and same errors.

I am trying to build ssl libs now


Antonio Linares wrote:Hakan,

Please try with this new Harbour for VSC2017:

https://bitbucket.org/fivetech/harbour- ... 170325.zip
Regards,

Hakan ONEMLI

Harbour & VS 2019 & FWH 20.12
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: MSVC 2017 Try

Post by Antonio Linares »

Here you have win-make.exe

https://github.com/harbour/core

You have to pull Harbour core from its repository
regards, saludos

Antonio Linares
www.fivetechsoft.com
Horizon
Posts: 997
Joined: Fri May 23, 2008 1:33 pm

Re: MSVC 2017 Try

Post by Horizon »

:?
Antonio Linares wrote:Here you have win-make.exe

https://github.com/harbour/core

You have to pull Harbour core from its repository
Regards,

Hakan ONEMLI

Harbour & VS 2019 & FWH 20.12
Horizon
Posts: 997
Joined: Fri May 23, 2008 1:33 pm

Re: MSVC 2017 Try

Post by Horizon »

Hi Antonio,

I have downloaded win-make.exe

it needs mak file.

Can you please explain more? Which directory should i copy go32.bat to run.



Horizon wrote::?
Antonio Linares wrote:Here you have win-make.exe

https://github.com/harbour/core

You have to pull Harbour core from its repository
Regards,

Hakan ONEMLI

Harbour & VS 2019 & FWH 20.12
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: MSVC 2017 Try

Post by Antonio Linares »

Hakan,

You have to download Harbour from its repository.

I use TortoiseGit to do it. You may also directly download the repository code from here:
https://github.com/harbour/core/archive/master.zip

Then you can use my provided go.bat to build it. if you want to build a certain lib, then
go to its folder, in example: c:\harbour\contrib\hbssl and run the go.bat from there

go.bat

Code: Select all

call "%ProgramFiles(x86)%\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" x86
set HB_WITH_OPENSSL=c:\OpenSSL-Win32\include
c:\harbour\bin\hbmk2 hbssl
regards, saludos

Antonio Linares
www.fivetechsoft.com
Horizon
Posts: 997
Joined: Fri May 23, 2008 1:33 pm

Re: MSVC 2017 Try

Post by Horizon »

Hi Antonio,

I think I have found the problem.

When I compiled my application, Compiler gives this error in both MSVC 2015 and MSVC 2017.

Code: Select all

hbssl.lib(ssl.obj) : error LNK2019: unresolved external symbol ___iob_func referenced in function _app_stdin
One year ago, you send below code to pass this error.
http://forums.fivetechsupport.com/viewt ... 8&start=15

Code: Select all

#pragma BEGINDUMP

#include <Windows.h>

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

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

#pragma ENDDUMP
The compiler pass this error with this code. Because of some error, I gave up the migrate to MSVC 2015.

Now, This errors occurs in MSVC 2017 with above code. (to pass this compiler error)

I have erased this code and ALL RUNTIME ERRORS GONE. but compiler error gives same error. but application run good.
Regards,

Hakan ONEMLI

Harbour & VS 2019 & FWH 20.12
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: MSVC 2017 Try

Post by Antonio Linares »

If the compiler is giving an error, how are you able to build the app ?
regards, saludos

Antonio Linares
www.fivetechsoft.com
Horizon
Posts: 997
Joined: Fri May 23, 2008 1:33 pm

Re: MSVC 2017 Try

Post by Horizon »

Antonio,

I have deleted all my .obj, .c and .exe files and build it.

exe is created.

link.log is

Code: Select all

FiveH32.lib(TGET.obj) : warning LNK4006: _HB_FUN_TGET zaten TGet.obj üzerinde tanımlandı; ikinci tanımlama yoksayıldı
FiveH32.lib(TGET.obj) : warning LNK4006: _HB_FUN_SETGETCOLORFOCUS zaten TGet.obj üzerinde tanımlandı; ikinci tanımlama yoksayıldı
FiveH32.lib(TGET.obj) : warning LNK4006: _HB_FUN_POPUPBROWSE zaten TGet.obj üzerinde tanımlandı; ikinci tanımlama yoksayıldı
   IcraW.lib kitaplığı ve IcraW.exp nesnesi oluşturuluyor
hbssl.lib(ssl.obj) : error LNK2019: Çözümlenmemiş dış sembol ___iob_func, _app_stdin işlevinde başvurdu
IcraW.exe : warning LNK4088: /FORCE seçeneği nedeniyle görüntü üretiliyor; görüntü çalışmayabilir
Sorry for language, I could not change the error display language in msvc 2017.
Regards,

Hakan ONEMLI

Harbour & VS 2019 & FWH 20.12
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: MSVC 2017 Try

Post by Antonio Linares »

I guess the EXE is created as you are using /FORCE flag

Is the EXE properly working ? If such function gets ever called, the EXE may GPF
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: MSVC 2017 Try

Post by Antonio Linares »

FWH + VSC2017 is working fine here :-)

Image
regards, saludos

Antonio Linares
www.fivetechsoft.com
Horizon
Posts: 997
Joined: Fri May 23, 2008 1:33 pm

Re: MSVC 2017 Try

Post by Horizon »

Hi Antonio,

working fine for me too.

It was my mistake. wrong hbssl.lib was added to mak file. it is ok now.

Thank you for all.
Regards,

Hakan ONEMLI

Harbour & VS 2019 & FWH 20.12
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: MSVC 2017 Try

Post by Antonio Linares »

very good :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
Post Reply