I had this library from previous version of harbourrathinagiri wrote:Hi Marek,
hbvpdf library is not included I think.
Try include these files in your project code or create a separate library.

thanks , Rathi!
Moderator: Rathinagiri
I had this library from previous version of harbourrathinagiri wrote:Hi Marek,
hbvpdf library is not included I think.
Try include these files in your project code or create a separate library.
I'm using this environment:hbmk2: Processing environment options: -compiler=mingw
Harbour 3.1.0dev (Rev. 16957)
Copyright (c) 1999-2011, http://harbour-project.org/
D:/HMiniGui/HMiniGui3/hmg/lib/libhmg.a(h_controlmisc.o):h_controlmisc.c:(.data+0xf18): undefined reference to `HB_FUN_FREELIBRARY'
D:/HMiniGui/HMiniGui3/hmg/lib/libhmg.a(h_controlmisc.o):h_controlmisc.c:(.data+0x1948): undefined reference to `HB_FUN_TOLEAUTO'
D:/HMiniGui/HMiniGui3/hmg/lib/libhmg.a(c_windows.o):c_windows.c:(.text+0x1780): undefined reference to `ISNIL'
D:/HMiniGui/HMiniGui3/hmg/lib/libhmg.a(c_windows.o):c_windows.c:(.text+0x2e4c): undefined reference to `ISCHAR'
D:/HMiniGui/HMiniGui3/hmg/lib/libhmg.a(c_winapimisc.o):c_winapimisc.c:(.text+0x741): undefined reference to `ISNIL'
D:/HMiniGui/HMiniGui3/hmg/lib/libhmg.a(c_winapimisc.o):c_winapimisc.c:(.text+0xded): undefined reference to `ISNIL'
D:/HMiniGui/HMiniGui3/hmg/lib/libhmg.a(c_winapimisc.o):c_winapimisc.c:(.text+0xe03): undefined reference to `ISNIL'
D:/HMiniGui/HMiniGui3/hmg/lib/libhmg.a(c_winapimisc.o):c_winapimisc.c:(.text+0xe23): undefined reference to `ISNIL'
D:/HMiniGui/HMiniGui3/hmg/lib/libhmg.a(c_winapimisc.o):c_winapimisc.c:(.text+0xfe7): undefined reference to `ISCHAR'
D:/HMiniGui/HMiniGui3/hmg/lib/libhmg.a(c_winapimisc.o):c_winapimisc.c:(.text+0x1013): undefined reference to `ISNIL'
D:/HMiniGui/HMiniGui3/hmg/lib/libhmg.a(c_dialogs.o):c_dialogs.c:(.text+0x8ee): undefined reference to `ISARRAY'
D:/HMiniGui/HMiniGui3/hmg/lib/libhmg.a(c_dialogs.o):c_dialogs.c:(.text+0x915): undefined reference to `ISARRAY'
D:/HMiniGui/HMiniGui3/hmg/lib/libhmg.a(c_dialogs.o):c_dialogs.c:(.text+0x93c): undefined reference to `ISARRAY'
D:/HMiniGui/HMiniGui3/hmg/lib/libhmg.a(c_dialogs.o):c_dialogs.c:(.text+0x963): undefined reference to `ISARRAY'
D:/HMiniGui/HMiniGui3/hmg/lib/libhmg.a(c_dialogs.o):c_dialogs.c:(.text+0x98a): undefined reference to `ISARRAY'
D:/HMiniGui/HMiniGui3/hmg/lib/libhmg.a(c_dialogs.o):c_dialogs.c:(.text+0x9b1): more undefined references to `ISARRAY' follow
D:/HMiniGui/HMiniGui3/hmg/lib/libhmg.a(c_dialogs.o):c_dialogs.c:(.text+0xb6d): undefined reference to `ISNIL'
D:/HMiniGui/HMiniGui3/hmg/lib/libhmg.a(c_dialogs.o):c_dialogs.c:(.text+0xb8a): undefined reference to `ISNIL'
D:/HMiniGui/HMiniGui3/hmg/lib/libhmg.a(c_dialogs.o):c_dialogs.c:(.text+0xbac): undefined reference to `ISNIL'
collect2: ld returned 1 exit status
hbmk2: Error: Running linker. 1
D:\HMiniGui\HARBOUR\comp\mingw\bin\gcc.exe C:/DOCUME~1/luigi/IMPOST~1/Temp/hbmk_qs8xgv.dir/agenda.o C:/DOCUME~1/luigi/IMPOST~1/Temp/hbmk_qs8xgv.dir/hbmk_0aoflx.o D:/HMiniGui/HMiniGui3/hmg/SAMPLES/AGENDA/_temp.o -mwindows -Wl,--start-group -lhmg -lcrypt -ledit -leditex -lgraph -lhfcl -lini -lreport -lmsvfw32 -lvfw32 -lhbct -lhbwin -lhbmzip -lminizip -lhbmemio -lhbmisc -lhbmysql -lmysql -lhbtip -lsqlite3 -lhbsqlit3 -lsddodbc -lrddsql -lsddmy -lhbodbc -lodbc32 -lhbhpdf -lhbfimage -lhbpgsql -lhbnetio -lhbextern -lhbdebug -lhbvm -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 -lwinspool -lcomctl32 -lcomdlg32 -lshell32 -luuid -lole32 -loleaut32 -lmpr -lwinmm -lmapi32 -limm32 -lmsimg32 -lwininet -lhbpcre -lhbzlib -Wl,--end-group -oagenda.exe -LD:/HMiniGui/HARBOUR/lib/win/mingw -LD:/HMiniGui/HARBOUR/bin -LD:/HMiniGui/HMiniGui3/hmg/lib
Code: Select all
SET HB_COMPILER=mingw
SET HRBHOME=D:\HMiniGui\HARBOUR
SET HRBBIN=%HRBHOME%\bin
SET HRBLOG=hb_error.log
SET SAVPATH=%PATH%
SET PATH=%PATH%;%MGWBIN%;%HRBBIN%
Code: Select all
SET HMGPATH=%~dp0
SET HB_COMPILER=mingw
SET HRBHOME=D:\HMiniGui\HARBOUR
SET HRBBIN=%HRBHOME%\bin
SET MGWHOME=%HRBHOME%\comp\mingw
SET MGWBIN=%MGWHOME%\bin
rem ******************************************************************************
rem SET BINARIES PATHS
rem ******************************************************************************
rem SET PATH=%HMGPATH%\harbour\bin;%HMGPATH%\mingw\bin;%PATH%
SET SAVPATH=%PATH%
SET PATH=%PATH%;%HRBBIN%;%MGWBIN%
Hi James:James wrote: I'm having difficulty making a console app, because when I put HB_GT_WIN_DEFAULT in the .prg, I get an error:
Code: Select all
@echo off
@echo
SET HMGPATH=C:\HMG3.0.38\
if "%1"=="" goto Input
call %HMGPATH%build.bat %*
goto Finish
:Input
SET Filename=
SET Parameter=
@cls
@echo ********************************************************************************
@echo This batch file passes information to hbmk2 to make possible an easy
@echo (zero configuration build of HMG applications).
@echo ********************************************************************************
@echo.
rem @color 01
@echo Enter Filename to compile, Filename.hbp assume if it exists
@echo.
rem @echo Enter <Esc> for Exit
@Set /p Filename= Application Name :
@echo.
if {%Filename%}=={} goto :Finish
@echo *******************************************************************************
@echo Extra parameters
@echo /n no run after build
@echo /d enabled debugger
@echo /c console mode
@echo Note: " <Enter> key entering no parameter is passed "
@echo *******************************************************************************
@echo.
@Set /p Parameter= passing parameters :
@echo.
rem @if %Filename%
If "%Parameter%"=="" goto Continue
@echo compilation with parameters
@if EXIST %Filename%.hbp Goto HBPParameters
@if EXIST %Filename%.prg Goto PRGParameters
@echo
@echo HMG Source not found !!!!!
@echo Press any key and Retry.....
@Pause >nul
goto Input
:HBPParameters
@Echo Compile %Filename%.hbp With %Parameter%
call %HMGPATH%build.bat %Parameter% %filename%.hbp
goto Input
:PRGParameters
@Echo Compile %Filename%.PRG With %Parameter%
call %HMGPATH%build.bat %Parameter% %%filename%.prg
@Pause
goto Input
:Continue
@echo no parameters compilation
@if EXIST %Filename%.hbp Goto HBP
@if EXIST %Filename%.prg Goto PRG
@echo.
@echo
@echo HMG Source not found !!!!!
@echo Press any key and Retry.....
@pause > nul
@goto Input
:HBP
@Echo Compile %Filename%.hbp
call %HMGPATH%build.bat %filename%.hbp
goto Input
:PRG
@Echo Compile %Filename%.prg
call %HMGPATH%build.bat %filename%.prg
goto Input
:Finish
@exit
Code: Select all
#include "HMG.CH"
REQUEST HB_GT_CGI_DEFAULT
STATIC .....
Function MAIN
...... ...
.......
RETURN
Hi,l3whmg wrote:Hi guys,
no one? Well, I find the solution! The problem was harbour libs list. I have copied from hb.hbc all lines inside "# harbour contrib list" and then I can compile and run my program.
But a little question: what is the minimal lib list required by HMG3.0.38? ie I don't use: "crypt", "edit", "editex", "graph", "hfcl", "ini" and "report". In this situation what are the harbour contrib library that I must include (about hmg, obviously).
Many thanks.
Cheers
Thanks, Daniel, I'm working now!danielmaximiliano wrote:Hi James:
Mrs Rathinagiri Refers:
REQUEST HB_GT_WIN_DEFAULT in PRG code.