Página 1 de 1

undefined reference to _HB_FUN_WVT_SETTITLE

Enviado: 20 Fev 2018 14:53
por syslink
teste de compilar o exemplo do Giovani

Código: Selecionar todos

http://www.elektrosoft.it/tutorials/gtwvg/gtwvg.asp
DEMO.PRG

Código: Selecionar todos

PROCEDURE Main()

   LOCAL cF1, cF2, cF3
   LOCAL GETLIST := {}

   Wvt_SetGui( .T. )

   SetMode( 25, 80 )
   SetColor( "N/W" )
   CLS

   Wvt_SetTitle( "Giovanni's Window" )

   SetColor( "N/W,N/GR*,,,N/W*" )

   cF1 = Space( 30 )
   cF2 = Space( 30 )
   cF3 = Space( 30 )

   @ 08, 10 SAY "Enter field 1  " GET cF1
   @ 10, 10 SAY "Enter field 2  " GET cF2
   @ 12, 10 SAY "Enter field 3  " GET cF3

   READ
RETURN
compilo usando um .BAT no harbour 3.4 do Viktor:

Código: Selecionar todos

@echo compilando DEMO...
@ HBMK2 DEMO.hbp -rebuild > DEMOLog.TXT 2>&1
o demo .HBP, contém:

Código: Selecionar todos

-oDEMO
demo.prg

gtwvg.hbc
gtwvw.hbc

-m
-quiet
a mensagem de erro é:

Código: Selecionar todos

Harbour 3.4.0dev (d1a7d6a) (2016-02-14 23:09)
Copyright (c) 1999-2016, https://github.com/vszakats/harbour-core/

Compiling 'demo.prg'...

Lines 43, Functions/Procedures 1
Generating C source output to '.hbmk\win\mingw\demo.c'... Done.
.hbmk/win/mingw/demo.o:demo.c:(.data+0x88): undefined reference to `_HB_FUN_WVT_SETTITLE'
collect2.exe: error: ld returned 1 exit status
hbmk2 [DEMO]: Erro: Executando linkeditor. 1
como resolvo o HB_FUN_WVT_SETTITLE ?

undefined reference to _HB_FUN_WVT_SETTITLE

Enviado: 20 Fev 2018 15:12
por microvolution
syslink escreveu:como resolvo o HB_FUN_WVT_SETTITLE ?
simplesmente substituindo a WVT_SETTITLE() para WVW_SETTITLE.
Ah! eu uso a compilação da GTWVG (que faz parte do harbour 3.4) e está presente na HMG 3.4.4 (que tem o harbour 3.2) pela IDE/HMG, usando as duas LIBs juntas
GTWVG + HMG

obs.: o WVT_SETTITLE não funciona de dentro da HMG, pois a lib GTWVW não está presente no harbour/contrib da HMG.

undefined reference to _HB_FUN_WVT_SETTITLE

Enviado: 20 Fev 2018 21:07
por JoséQuintas

Código: Selecionar todos

#include "hbgtinfo.ch"
  
hb_GtInfo( HB_GTI_WINTITLE, cTitulo )

undefined reference to _HB_FUN_WVT_SETTITLE

Enviado: 23 Fev 2018 21:29
por microvolution
JoséQuintas escreveu:hb_GtInfo( HB_GTI_WINTITLE, cTitulo )
isso mesmo... já havia esquecido do que vc um dia já me ensinou...
abraços!