undefined reference to _HB_FUN_WVT_SETTITLE

Outras bibliotecas visuais e IDEs para Harbour/xHarbour (xHGTK/HbWxW/GtWvT/GtWvW/WvWtools.etc)

Moderador: Moderadores

syslink
Usuário Nível 3
Usuário Nível 3
Mensagens: 132
Registrado em: 20 Fev 2018 13:13
Localização: joinvile/sc

undefined reference to _HB_FUN_WVT_SETTITLE

Mensagem 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 ?
microvolution
Usuário Nível 5
Usuário Nível 5
Mensagens: 1231
Registrado em: 02 Set 2011 22:17
Contato:

undefined reference to _HB_FUN_WVT_SETTITLE

Mensagem 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.
Avatar do usuário
JoséQuintas
Administrador
Administrador
Mensagens: 20267
Registrado em: 26 Fev 2007 11:59
Localização: São Paulo-SP

undefined reference to _HB_FUN_WVT_SETTITLE

Mensagem por JoséQuintas »

Código: Selecionar todos

#include "hbgtinfo.ch"
  
hb_GtInfo( HB_GTI_WINTITLE, cTitulo )
José M. C. Quintas
Harbour 3.2, mingw, gtwvg mt, fivewin 25.04, multithread, dbfcdx, MySQL, ADOClass, PDFClass, SefazClass, (hwgui mt), (hmg3), (hmg extended), (oohg), PNotepad, ASP, stored procedure, stored function, Linux (Flagship/harbour 3.2)
"The world is full of kings and queens, who blind our eyes and steal our dreams Its Heaven and Hell"

https://github.com/JoseQuintas/
microvolution
Usuário Nível 5
Usuário Nível 5
Mensagens: 1231
Registrado em: 02 Set 2011 22:17
Contato:

undefined reference to _HB_FUN_WVT_SETTITLE

Mensagem 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!
Responder