hbmk2 error al linkar lib
Enviado: 16 Ago 2021 14:45
Estoy teniendo problemas en linkar una lib en hbmk2:
-L./WebView/Win32 -lWebView2Loader
Cuando compilo en c con:
funciona perfecto, pero con hbmk2 no encuentra la lib y no puede linkar:
También probé agregar a un .hbc y no funciona:
Error:
Que estoy haciendo mal?
-L./WebView/Win32 -lWebView2Loader
Cuando compilo en c con:
Código: Selecionar todos
gcc -Wall myWebView2.cpp -o myWebView2.exe -L./WebView/Win32 -lWebView2Loader -mwindows -pthread -static-libgcc -static-libstdc++ -Wl,-Bstatic -lstdc++ -lpthread -Wl,-Bdynamic
funciona perfecto, pero con hbmk2 no encuentra la lib y no puede linkar:
Código: Selecionar todos
SET HMGPATH=C:\HMG.3.5
SET PATH=%HMGPATH%\harbour\bin;%HMGPATH%\mingw\bin;%PATH%
SET gtdrivers=-gtgui -gtwin
echo #define HMGRPATH %HmgPath%\RESOURCES > _hmg_resconfig.h
COPY /b %HMGPATH%\resources\hmg32.rc+"%~n1.rc"+%HMGPATH%\resources\filler _temp.rc >NUL
WINDRES -i _temp.rc -o _temp.o >windres.log 2>&1
rem call C:\HMG.3.5\build.bat test.prg -cpp -L./WebView/Win32 -lWebView2Loader
HBMK2 -ldflag="-pthread -static-libgcc -static-libstdc++ -static -lpthread -lstdc++" -mt -otest %HMGPATH%\hmg32.hbc %gtdrivers% test.prg -cpp -info -L./WebView/Win32 -lWebView2Loader
Código: Selecionar todos
incpaths=/.
incpaths=WebView/include
libpaths=WebView/Win32
libs=WebView2Loader
Código: Selecionar todos
hbmk2: Enlazando... test.exe
c:/hmg.3.5/mingw/bin/../lib/gcc/i686-w64-mingw32/9.3.0/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lWebView2Loader
collect2.exe: error: ld returned 1 exit status
hbmk2: Error: Ejecutando enlazador. 1