Hi guys,
Now playing around with hbmk2 (harbour rev 17047) + mingw + fwh11.8.
I try to compile the following piece of code
I compile using the syntax:
But I got this error instead
I would also appreciate if someone would like to share tips on how to control the sequence of include dir to search and sequence of libs to link when using hbmk2.
TIA
Now playing around with hbmk2 (harbour rev 17047) + mingw + fwh11.8.
I try to compile the following piece of code
#include "fivewin.ch"
function ud_origin()
 local cExePath := getmodulefilename(getinstance())
  ? cExePath
  ? getwindir()
  ? len("C:\Program Files (x86)\Common Files\microsoft shared\Virtualization Handler\CVH.EXE  Microsoft Excel Starter 2010 9014006604090000")
  ? os_versioninfo()
  ? GetEnv("UserPRofile")
  ? OS_VersionInfo()[1]
  ? valtype(OS_VersionInfo()[1])
return cExePathI compile using the syntax:
D:\fwh\samples>hbmk2 hua3 Â xhb.hbc d:\fwh\fwh.hbcBut I got this error instead
Harbour 3.1.0dev (Rev. 17047)
Copyright (c) 1999-2011, http://harbour-project.org/
Compiling 'hua3.prg'...
Lines 3808, Functions/Procedures 1
Generating C source output to 'C:\Users\hua\AppData\Local\Temp\hbmk_fxk1jg.dir\hua3.c'... Done.
d:/fwh/lib/fivehg.lib(gettasks.o):gettasks.c:(.text+0x83): undefined reference to `GetModuleFileNameExA@16'
collect2: ld returned 1 exit status
hbmk2: Error: Running linker. 1
gcc.exe C:/Users/hua/AppData/Local/Temp/hbmk_fxk1jg.dir/hua3.o C:/Users/hua/AppData/Local/Temp/hbmk_fxk1jg.dir/hbmk_rxlyrf.o   -mwindows -Wl,--start-group -lxhb -lhbct -lhbtip -lhbwin -lpng -lhbfship -lhbxpp -lfi
vehg -lfivehgc -lcomctl32 -lcomdlg32 -lgdi32 -lhbcplr -lhbmzip -lhbpcre -lhbsqlit3 -lhbzlib -lmsimg32 -lodbc32 -lole32 -loleaut32 -luser32 -luuid -lvfw32 -lwinmm -lwinspool -lwsock32 -lhbextern -lhbdebug -lhbvm -l
hbrtl -lhblang -lhbcpage -lgtcgi -lgtpca -lgtstd -lgtwin -lgtwvt -lgtgui -lhbrdd -lhbuddall -lhbusrrdd -lrddntx -lrddcdx -lrddnsx -lrddfpt -lhbrdd -lhbhsx -lhbsix -lhbmacro -lhbcplr -lhbpp -lhbcommon -lhbmainwin -
lkernel32 -luser32 -lgdi32 -ladvapi32 -lws2_32 -lwinspool -lcomctl32 -lcomdlg32 -lshell32 -luuid -lole32 -loleaut32 -lmpr -lwinmm -lmapi32 -limm32 -lmsimg32 -lwininet -lhbpcre -lhbzlib  -Wl,--end-group -ohua3.exe
 -Ld:/harbour/lib/win/mingw -Ld:/harbour/bin/win/mingw -Ld:/fwh/libI would also appreciate if someone would like to share tips on how to control the sequence of include dir to search and sequence of libs to link when using hbmk2.
TIA
FWH 11.08/FWH 19.12
BCC5.82/BCC7.3
xHarbour/Harbour
BCC5.82/BCC7.3
xHarbour/Harbour