Ricardo,
If you use:
-ldflag=@libs.txt
then you can specify in libs.txt the libs and the order that you want
ldflags= space separated list of values as in -ldflag= option
ldflags+= space separated list of values as in -ldflag+= option
Antonio Linares wrote:Ricardo,
If you use:
-ldflag=@libs.txt
then you can specify in libs.txt the libs and the order that you want
nageswaragunupudi wrote:Using builh.bat is possible to create a script and set the order for our files to be compiled.
Even if shuffle the order also the regex functions are linked correctly by buildh.bat
Please do not directly check for oRs:cResyncSQL.
Please check for the two small programs I posted in this thread before. These two programs are totally independent of FWH libs.
#include "fivewin.ch"
function Main()
local oCn, oRs
local cSql, nAt := 0
cSql := "SELECT * FROM states AS st LEFT JOIN teste AS tes ON st.ctest=tes.ctest WHERE tes.data >= '2019-06-16' AND tes.calmox='01' AND tes.situacao <> 'I' ORDER BY tes.data DESC LIMIT 5"
HB_AtX( " ORDER BY | HAVING | LIMIT | GROUP ", cSql, .f., @nAt )
? nAt, cSql, SubStr( cSql, nAt )
return nil
#PRGs
#at the beginning of the hbp file put your prgs
C:\FWH19\SAMPLES\TESTAB.PRG
#Nome do arquivo gerado
-oc:\fwh19\samples\testab
-n
-m
-es1
-gc1
-w1
-mt
-info
-trace
#Incremental
#-inc
-cflag=-c -O2
-gui
#Includes
-ic:\FWH19\include
#Lib's
-Lc:\FWH19\lib
-lFiveH
-lFiveHC
-lLibMySql
-lhbwin
-lgtgui
-lhbct
-lxhb
-lhbmisc
-lhbziparc
-lhbmzip
-lminizip
-lhbtip
"SELECT * FROM states AS st LEFT JOIN teste AS tes ON st.ctest=tes.ctest WHERE tes.data >= '2019-06-16' AND tes.calmox='01' AND tes.situacao <> 'I' ORDER BY tes.data DESC LIMIT 5 ORDER BY tes.data DESC LIMIT 5"
nageswaragunupudi wrote:That means the correct function HB_AtX is not linked.
Instead of getting unresolved external, how a dummy function is linked returning 0 (zero) ?
surprising.
"SELECT * FROM states AS st LEFT JOIN teste AS tes ON st.ctest=tes.ctest WHERE tes.data >= '2019-06-16' AND tes.calmox='01' AND tes.situacao <> 'I' ORDER BY tes.data DESC LIMIT 5"
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: Google [Bot] and 41 guests