thx for Answer.
i have assign *.HBP to IDE (Unicode) so i "just" dblclick on *.HBP and press F5
Code: Select all
C:\hmg.3.4.4\IDE\IDE.exe "%1"
what do i miss
Moderator: Rathinagiri
thx for Answer.
Code: Select all
C:\hmg.3.4.4\IDE\IDE.exe "%1"
Code: Select all
..\..\build MainIPPub.hbp
hm ... which Version do you use : HMG 3.4.4 or 3.5Harbour 3.2.0dev (r1703241902)
Copyright (c) 1999-2016, http://harbour-project.org/
R:/Temp/hbmk_0joemu.dir/MainIPPub.o:MainIPPub.c:(.text+0xaa): undefined reference to `URLDownloadToFileW@20'
collect2.exe: error: ld returned 1 exit status
hbmk2[MainIPPub]: Error: Running linker. 1
gcc.exe R:/Temp/hbmk_0joemu.dir/MainIPPub.o R:/Temp/hbmk_0joemu.dir/hbmk_xesgsy.o c:/hmg.3.4.4/0/IPPUBLIC/_temp.o -pthread -static-libgcc -static-libstdc++ -static -lpthread -mwindows -Wl,--start-group -lhmg -lcrypt -ledit -leditex -lgraph -lini -lreport -lhfcl -lmsvfw32 -lvfw32 -lhbmysql -lmysql -lhbfimage -lhbpgsql -lsddmy -lhbvpdf -lhbct -lhbwin -lhbmzip -lminizip -lhbmemio -lhbmisc -lhbtip -lsqlite3 -lhbsqlit3 -lsddodbc -lrddsql -lhbodbc -lodbc32 -lhbhpdf -lhbnetio -lxhb -lpng -llibhpdf -lhbzebra -lhbssl -llibeay32 -lssleay32 -lhbextern -lhbdebug -lhbvmmt -lhbrtl -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 -liphlpapi -lwinspool -lcomctl32 -lcomdlg32 -lshell32 -luuid -lole32 -loleaut32 -lmpr -lwinmm -lmapi32 -limm32 -lmsimg32 -lwininet -lhbpcre -lhbzlib -Wl,--end-group -oMainIPPub.exe -Lc:/hmg.3.4.4/harbour/lib/win/mingw -Lc:/hmg.3.4.4/lib
I think You need urlmon lib, try to add "-lurlmon" into MainIPPub.hbpAUGE_OHR wrote: ↑Fri Nov 12, 2021 11:55 pm hi,
have open CMD box and typebut i still got Error ( now with "W@20" )Code: Select all
..\..\build MainIPPub.hbp
hm ... which Version do you use : HMG 3.4.4 or 3.5Harbour 3.2.0dev (r1703241902)
Copyright (c) 1999-2016, http://harbour-project.org/
R:/Temp/hbmk_0joemu.dir/MainIPPub.o:MainIPPub.c:(.text+0xaa): undefined reference to `URLDownloadToFileW@20'
collect2.exe: error: ld returned 1 exit status
hbmk2[MainIPPub]: Error: Running linker. 1
gcc.exe R:/Temp/hbmk_0joemu.dir/MainIPPub.o R:/Temp/hbmk_0joemu.dir/hbmk_xesgsy.o c:/hmg.3.4.4/0/IPPUBLIC/_temp.o -pthread -static-libgcc -static-libstdc++ -static -lpthread -mwindows -Wl,--start-group -lhmg -lcrypt -ledit -leditex -lgraph -lini -lreport -lhfcl -lmsvfw32 -lvfw32 -lhbmysql -lmysql -lhbfimage -lhbpgsql -lsddmy -lhbvpdf -lhbct -lhbwin -lhbmzip -lminizip -lhbmemio -lhbmisc -lhbtip -lsqlite3 -lhbsqlit3 -lsddodbc -lrddsql -lhbodbc -lodbc32 -lhbhpdf -lhbnetio -lxhb -lpng -llibhpdf -lhbzebra -lhbssl -llibeay32 -lssleay32 -lhbextern -lhbdebug -lhbvmmt -lhbrtl -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 -liphlpapi -lwinspool -lcomctl32 -lcomdlg32 -lshell32 -luuid -lole32 -loleaut32 -lmpr -lwinmm -lmapi32 -limm32 -lmsimg32 -lwininet -lhbpcre -lhbzlib -Wl,--end-group -oMainIPPub.exe -Lc:/hmg.3.4.4/harbour/lib/win/mingw -Lc:/hmg.3.4.4/lib
Code: Select all
#harbour options:
-w3
#hbmk2 options:
-lurlmon
#sources:
MainIPPub.prg
YESedk wrote: ↑Sat Nov 13, 2021 3:21 am I think You need urlmon lib, try to add "-lurlmon" into MainIPPub.hbpCode: Select all
#harbour options: -w3 #hbmk2 options: -lurlmon #sources: MainIPPub.prg
I think when you use the IDE the library entries in the .hbp file are ignored. So they must be declared in .hbc, try this .hbc:
Code: Select all
libs=urlmon
Code: Select all
#hbmk2 options:
-lurlmon
#sources:
ImageFromWeb.prg
Code: Select all
build.bat ImageFromWeb.hbp
Code: Select all
build.bat ImageFromWeb.hbp -lurlmon
Code: Select all
build.bat ImageFromWeb.hbp ImageFromWeb.hbc