FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour To Rao / Antonio: Strange error.
Posts: 723
Joined: Tue Sep 04, 2007 08:45 AM

To Rao / Antonio: Strange error.

Posted: Mon May 09, 2011 01:19 AM
Guys:

When compiling the following piece of code (I'd included the SIX library as Antonio suggested) :
Code (fw): Select all Collapse
#include "FiveWin.Ch"
#include "ord.ch"
#include "xbrowse.ch"

//----------------------------------------------------------------------------//

REQUEST SIX

static cDbf := "SAMPLE.DBF" Β // change this line for your path

//----------------------------------------------------------------------------//

function Main()

Β  Β MsgInfo( TestDialog() )

return (0)

//----------------------------------------------------------------------------//

init procedure PrgInit

Β  Β  SET DATE ITALIAN
Β  Β  SET CENTURY ON
Β  Β  SET TIME FORMAT TO "HH:MM:SS"
Β  Β  SET EPOCH TO YEAR(DATE())-50

Β  Β  SET DELETED ON
Β  Β  SET EXCLUSIVE OFF

Β  Β  RDDSETDEFAULT( "DBFCDX" )

Β  Β  XbrNumFormat( 'A', .t. )
Β  Β  SetGetColorFocus()

return

//----------------------------------------------------------------------------//

static function TestDialog()

Β  Β local oDlg, oBrw, oFont, cRet
Β  Β local bSeek

Β  Β USE (cDbf) NEW SHARED
Β  Β SET ORDER TO TAG ORDER1
Β  Β GO TOP

Β  Β DEFINE FONT oFont NAME 'TAHOMA' SIZE 0,-14
Β  Β DEFINE DIALOG oDlg SIZE 637,600 PIXEL ;
Β  Β  Β  TITLE "Sample Records" ;
Β  Β  Β  FONT oFont

Β  Β @ 10,10 XBROWSE oBrw SIZE 300,230 PIXEL OF oDlg ;
Β  Β  Β  COLUMNS "Name", Β  Β  "LastName", "Sup_no" ;
Β  Β  Β  HEADERS "Header 1", "Name", "Supplier No." ;
Β  Β  Β  ALIAS "Sample" AUTOSORT LINES CELL NOBORDER


Β  Β @ 250,10 SAY oBrw:oSeek PROMPT oBrw:cSeek SIZE 280,10 PIXEL OF oDlg ;
Β  Β  Β  COLOR CLR_BLACK, CLR_YELLOW

Β  Β // Next two lines are a Small work around for case insensitive seek
Β  Β bSeek Β  Β  Β := oBrw:bSeek
Β  Β oBrw:bSeek := { |c| Eval( bSeek, Upper( c ) ) }
Β  Β // The above two lines will not needed from FWH 11.1 onwards


Β  Β SETKEY( VK_RETURN, { || cRet := FIELD->NAME, oDlg:end() } )
Β  Β SETKEY( Asc("Y"), Β { || If( GetKeyState( VK_CONTROL ), oBrw:Seek(), nil ) } )


Β  Β WITH OBJECT oBrw
Β  Β  Β  :bClrSelFocus Β  Β  := { || { CLR_WHITE, CLR_GREEN } }
// Β  Β  Β :nHeadStrAligns Β  := AL_CENTER
Β  Β  Β  :nStretchCol Β  Β  Β := STRETCHCOL_WIDEST
Β  Β  Β  :nMarqueeStyle Β  Β := 5
Β  Β END

Β  Β oBrw:CreateFromCode()

Β  Β ACTIVATE DIALOG oDlg CENTERED ON INIT ( oBrw:SetFocus(), .f. )
Β  Β RELEASE FONT oFont

return cRet


The linker displays the following error:
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ FiveWin for xHarbour 10.6 - Jun. 2010 xHarbour development power β”‚β–„
β”‚ (c) FiveTech, 1993-2010 for Microsoft Windows 9X/NT/200X/ME/XP/Vista/7 β”‚β–ˆ
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜β–ˆ
Β  β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€
Compiling...
xHarbour Compiler build 1.2.1 (SimpLex) (Rev. 6717)
Copyright 1999-2010, http://www.xharbour.org http://www.harbour-project.org/
Compiling 'TESTSIX.prg' and generating preprocessed output to 'TESTSIX.ppo'...
Lines 87, Functions/Procedures 3
Generating C source output to 'TESTSIX.c'...
Done.
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
TESTSIX.c:
Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland
Error: Unresolved external '_HB_FUN_SIX' referenced from F:\DATA\APPS\TESTSIX.OBJ
* Linking errors *


The code compiles with the xBuilder utility from commercial xHarbour Sept. 2008.

Any ideas ? Thank you.
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM

Re: To Antonio: Strange error.

Posted: Mon May 09, 2011 05:44 AM

Please link hbsix.lib too

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 723
Joined: Tue Sep 04, 2007 08:45 AM

Re: To Antonio: Strange error.

Posted: Mon May 09, 2011 01:49 PM

Antonio:

Thank you for your reply. I still cannot link due to the same error. :(

Continue the discussion