Page 2 of 4

Re: Errors in New Build

PostPosted: Fri May 03, 2013 4:02 pm
by TimStone
I am now ... I still had the October 2012 version of Harbour.

It now works. Thank you.

Tim

Re: Errors in New Build

PostPosted: Fri May 03, 2013 4:33 pm
by Richard Chidiak
Tim

Are you using Msvc 2012 now ?

Can you comment on it ?

Thank you

Richard

Re: Errors in New Build

PostPosted: Fri May 03, 2013 6:58 pm
by TimStone
OK ... so that created a nightmare.

First I tried changing the settings to use Visual Studio ( C ) 11.0 ( 2012 ). It didn't link the program, and maybe didn't even complete the build of the files.

So then I reverted back to 2010 and rebuilt the program. Of course now I have the latest Harbour. I selected to Rebuild All which brought to light the following errors:

Code: Select all  Expand view
--------------------Configuration: ASW2013 - Release--------------------
FiveH32.lib(HARBOUR.obj) : error LNK2001: unresolved external symbol _HB_FUN_HB_COMPILEFROMBUF
hbtipssl.lib(client.obj) : error LNK2001: unresolved external symbol _HB_FUN_SSL_CONNECT
hbtipssl.lib(client.obj) : error LNK2001: unresolved external symbol _HB_FUN_SSL_SET_FD
hbtipssl.lib(client.obj) : error LNK2001: unresolved external symbol _HB_FUN_SSL_SET_MODE
hbtipssl.lib(client.obj) : error LNK2001: unresolved external symbol _HB_FUN_ERR_ERROR_STRING
hbtipssl.lib(client.obj) : error LNK2001: unresolved external symbol _HB_FUN_SSL_GET_ERROR
hbtipssl.lib(client.obj) : error LNK2001: unresolved external symbol _HB_FUN_HB_SSL_READ_ALL
hbtipssl.lib(client.obj) : error LNK2001: unresolved external symbol _HB_FUN_HB_SSL_READ_LINE
hbtipssl.lib(client.obj) : error LNK2001: unresolved external symbol _HB_FUN_SSL_READ
hbtipssl.lib(client.obj) : error LNK2001: unresolved external symbol _HB_FUN_SSL_WRITE
hbtipssl.lib(client.obj) : error LNK2001: unresolved external symbol _HB_FUN_SSL_SHUTDOWN
hbtipssl.lib(client.obj) : error LNK2001: unresolved external symbol _HB_FUN_SSL_NEW
hbtipssl.lib(client.obj) : error LNK2001: unresolved external symbol _HB_FUN_SSL_CTX_NEW
hbtipssl.lib(client.obj) : error LNK2001: unresolved external symbol _HB_FUN_RAND_SEED
hbtipssl.lib(client.obj) : error LNK2001: unresolved external symbol _HB_FUN_SSL_INIT
hbrtl.lib(hbsocket.obj) : error LNK2019: unresolved external symbol __imp__WSAIoctl@36 referenced in function _hb_socketGetIFaces

asw2012.exe : fatal error LNK1120: 16 unresolved externals


I am assuming that the builds previously ( done with the October 2012 version of Harbour ) were OK so they didn't get re-compiled. Now when I rebuild all with the newer version of Harbour, and the current FWH, I have some problems.

I imagine these are just needing a library added to the build.

Any help would be GREATLY appreciated.

Tim

Re: Errors in New Build

PostPosted: Fri May 03, 2013 7:34 pm
by Antonio Linares
Tim,

You have to link Harbour hbcplr.lib for HB_CompileFromBuf()

Re: Errors in New Build

PostPosted: Fri May 03, 2013 7:42 pm
by Antonio Linares
And Harbour hbssl.lib for the SSL ones.

This one I think it is missing from our Harbour distribution. Try with your previous one (just use the hbssl.lib).

Re: Errors in New Build

PostPosted: Fri May 03, 2013 8:00 pm
by TimStone
Down to this one:

hbrtl.lib(hbsocket.obj) : error LNK2019: unresolved external symbol __imp__WSAIoctl@36 referenced in function _hb_socketGetIFaces

Re: Errors in New Build

PostPosted: Fri May 03, 2013 8:08 pm
by Horizon
back to 13.03.

Re: Errors in New Build

PostPosted: Fri May 03, 2013 8:23 pm
by TimStone
I'm not going back ... I'm down to one item and I'll be fine.

Also 13.04 is now working fine with the xHarbour.com build ...

ALL problems get resolved here. I've never been hung out over something ... Antonio and others always have the fixes to make problems go away.

Re: Errors in New Build

PostPosted: Fri May 03, 2013 9:24 pm
by Antonio Linares
Tim,

Please check if you have this library: WS2_32.LIB and link it

Re: Errors in New Build

PostPosted: Fri May 03, 2013 9:34 pm
by TimStone
Sorry, but I can't find it on my computer.

Re: Errors in New Build

PostPosted: Fri May 03, 2013 9:49 pm
by TimStone
I found it and can now build the program ...

Then the following code:

Code: Select all  Expand view

// Declare EXTERNAL variables
    MEMVAR aPassWord, hBorland, oMfont, oWnd, oBrush, cPath
    // Declare LOCAL variables
    LOCAL login, xy
    LOCAL retval := .F.
    LOCAL cUser      := SPACE( 20 )
    LOCAL cPass      := SPACE( 20 )
    LOCAL oTmp := tdata():new(, "emuser" )
    LOCAL oBmpg

 // Open the user file
    oTmp:use()
    IF ! FILE( cpath + "emuser.cdx" )
        oTmp:createIndex( "emuser", "upper(userid)",,, .t., 10 )
    ENDIF
    oTmp:setorder( "emuser" )
    oTmp:gotop()
    AFILL( aPassWord, .F. )

    // Build the dialog to log in
    DEFINE DIALOG login RESOURCE "LOGIN" TITLE "MasterLink Software Service Management Login" ;
      BRUSH oBrush TRANSPARENT
    REDEFINE BITMAP oBmpg ID 513 OF login NAME "MLSTR"
    REDEFINE GET cUser ID 101 OF login MESSAGE "Enter your user code"
    REDEFINE GET cPass ID 102 OF login MESSAGE "Enter your unique password"
    REDEFINE BTNBMP RESOURCE "HROK" ID 103 OF login TOOLTIP "Click to Log In" ;
        ACTION login:end( ) MESSAGE "Submit the user and password" NOBORDER TRANSPARENT

    // Activate the dialog
    ACTIVATE DIALOG login CENTERED

 


Yields the following error on startup:

Code: Select all  Expand view

detailled error description
---------------------------
   Error BASE/1003  Variable does not exist: SUPER

Stack-List
----------
   called by TGET:INITIATE(0)
   called by __OBJSENDMSG(0)
   called by OSEND(270)
   called by ASEND(238)
   called by TDIALOG:INITIATE(627)
   called by TDIALOG:HANDLEEVENT(872)
   called by DIALOGBOX(0)
   called by TDIALOG:ACTIVATE(270)
   called by SIGNON(0)
   called by MAIN(0)
   CPU type: Intel(R) Core(TM) i5-2390T CPU @ 2.70GHz -2147483648 Mhz
   Hardware memory: 8138 MB ( available: 5344 MB )
 


This occurs when trying to initiate a very simple Dialog ! The dialog does not even begin to display ...

I bypassed this code, and then built the primary window. ANY Dialog that I tried to create failed. The error is in creating a dialog ( and I'm doing it from resources ).

Harbour 03/13 release, FWH 13.04, MSVC 2010


Tim

Re: Errors in New Build

PostPosted: Fri May 03, 2013 10:35 pm
by TimStone
RESOLVED =

On previous versions we had modified tGet and I had the old version in there.

Now we are fine.

Tim

Re: Errors in New Build

PostPosted: Sat May 04, 2013 12:06 am
by Antonio Linares
Very good :-)

Re: Errors in New Build

PostPosted: Sat May 04, 2013 11:45 am
by Richard Chidiak
Antonio or Tim

Can tou send me hbssl.lib for harbour/msvc i plan to install fwh 13.04 in the next few days .

Thanks in advance,

Richard

Re: Errors in New Build

PostPosted: Sat May 04, 2013 12:52 pm
by Antonio Linares
Richard,

We don't get it built here as we haven't installed openssl (my guess)

I have emailed Tim asking him to send it to me so we publish it here for all users :-)