Page 1 of 1

Error falta gtgui.lib en UESTUDIO

PostPosted: Mon Apr 23, 2007 10:07 am
by Andrés González
Antonio,

Tengo la version FWPPC hasta la 1.0 ahora cuando intento compilar con el ustudio y el ejemplo que tu pones en el video me dice:
Code: Select all  Expand view
--------------------Configuración: Test - Debug--------------------
Harbour Compiler Alpha build 45.0 (Flex)
Copyright 1999-2005, http://www.harbour-project.org/
G:\FWPPC\UESTUDIO\Prueba1\Test.prg(11) Warning W0005  RETURN statement with no return value in function
Microsoft (R) C/C++ Optimizing Compiler Version 12.20.9615 for ARM
Copyright (C) Microsoft Corp 1984-2002. All rights reserved.

Test.c
Harbour Compiler Alpha build 45.0 (Flex)
Copyright 1999-2005, http://www.harbour-project.org/
Microsoft (R) C/C++ Optimizing Compiler Version 12.20.9615 for ARM
Copyright (C) Microsoft Corp 1984-2002. All rights reserved.

otro.c
LINK : fatal error LNK1181: cannot open input file 'G:\FWPPC\HARBOURCE\LIB\gtgui.lib'
Test.EXE - 1 error(es), 1 advertencia(s)


He revisado el harbource y no tengo esa libreria, ¿hay que hacer algo para generala o hay que cambiarla por otra?

Gracias

PostPosted: Mon Apr 23, 2007 11:38 am
by Antonio Linares
Andrés,

Renombra tu gtwin.lib como gtgui.lib ó cambia el nombre en el fichero de configuración de FWPPC para UEStudio por gtwin.lib

PostPosted: Mon Apr 23, 2007 1:15 pm
by Andrés González
Eso fue lo primero que hice renombre el fichero aplicacion de gtgui.lib a gtwin.lib y me dio estos errores por eso mande el mensaje.
Code: Select all  Expand view
--------------------Configuración: Test - Debug--------------------
Harbour Compiler Alpha build 45.0 (Flex)
Copyright 1999-2005, http://www.harbour-project.org/
G:\FWPPC\UESTUDIO\Prueba1\Test.prg(11) Warning W0005  RETURN statement with no return value in function
Microsoft (R) C/C++ Optimizing Compiler Version 12.20.9615 for ARM
Copyright (C) Microsoft Corp 1984-2002. All rights reserved.

Test.c
Harbour Compiler Alpha build 45.0 (Flex)
Copyright 1999-2005, http://www.harbour-project.org/
Microsoft (R) C/C++ Optimizing Compiler Version 12.20.9615 for ARM
Copyright (C) Microsoft Corp 1984-2002. All rights reserved.

otro.c
   Creating library Test.lib and object Test.exp
Test.obj : error LNK2001: unresolved external symbol HB_FUN___DBGENTRY
otro.obj : error LNK2001: unresolved external symbol HB_FUN___DBGENTRY
Test.obj : error LNK2001: unresolved external symbol HB_FUN_TWINDOW
otro.obj : error LNK2001: unresolved external symbol HB_FUN_MSGINFO
Test.exe : fatal error LNK1120: 3 unresolved externals
Test.EXE - 5 error(es), 1 advertencia(s)


Pero me he fijado en mensajes anteriores que es debido a una actualizacion del harbource. El Buildce me funciona perfectamente pero enlazando gtwin.

PostPosted: Mon Apr 23, 2007 1:52 pm
by Antonio Linares
Andrés,

Es que el build anterior de Harbour para Pocket PC se construía en modo C++ y ahora, en el más reciente, se usa el modo C (no C++).

Esto se ha debido a cambios en el proyecto Harbour.

De todas formas, añade /TP al llamar a clarm desde el fichero de configuración de FWPPC para UEStudio, para que use el modo C++

PostPosted: Tue Apr 24, 2007 5:51 am
by Andrés González
He añadido esto en copt:
COPT = -TP -W3 -c /DARM /DUNICODE -I$(HPATH)\INCLUDE -I$(CPATH)\INCLUDE\ARM


Pero luego me aparece el error de que falta la funcion __Run() o almenos eso parece.




--------------------Configuración: Test - Debug--------------------
Harbour Compiler Alpha build 45.0 (Flex)
Copyright 1999-2005, http://www.harbour-project.org/
Microsoft (R) C/C++ Optimizing Compiler Version 12.20.9615 for ARM
Copyright (C) Microsoft Corp 1984-2002. All rights reserved.

Test.c
Harbour Compiler Alpha build 45.0 (Flex)
Copyright 1999-2005, http://www.harbour-project.org/
Microsoft (R) C/C++ Optimizing Compiler Version 12.20.9615 for ARM
Copyright (C) Microsoft Corp 1984-2002. All rights reserved.

otro.c
Creating library Test.lib and object Test.exp
rtl.lib(run.obj) : error LNK2019: unresolved external symbol "int __cdecl system(char const *)" (?system@@YAHPBD@Z) referenced in function "void __cdecl HB_FUN___RUN(void)" (?HB_FUN___RUN@@YAXXZ)
Test.exe : fatal error LNK1120: 1 unresolved externals
Test.EXE - 2 error(es), 0 advertencia(s)


Pero si añado esta funcion:
Function __Run()
Return nil


Luego me aparecen estos warnings pero me genera el exe y funciona en mi hp6515.
--------------------Configuración: Test - Debug--------------------
Harbour Compiler Alpha build 45.0 (Flex)
Copyright 1999-2005, http://www.harbour-project.org/
Microsoft (R) C/C++ Optimizing Compiler Version 12.20.9615 for ARM
Copyright (C) Microsoft Corp 1984-2002. All rights reserved.

Test.c
Harbour Compiler Alpha build 45.0 (Flex)
Copyright 1999-2005, http://www.harbour-project.org/
Microsoft (R) C/C++ Optimizing Compiler Version 12.20.9615 for ARM
Copyright (C) Microsoft Corp 1984-2002. All rights reserved.

otro.c
Creating library Test.lib and object Test.exp
vm.lib(hvm.obj) : warning LNK1166: cannot adjust code at offset=0x00001000, rva=0x000314E0
rdd.lib(dbf1.obj) : warning LNK1166: cannot adjust code at offset=0x00001000, rva=0x000874B0
dbfntx.lib(dbfntx1.obj) : warning LNK1166: cannot adjust code at offset=0x00001000, rva=0x00094EFC
dbffpt.lib(dbffpt1.obj) : warning LNK1166: cannot adjust code at offset=0x00001000, rva=0x000AA9D8
Test.EXE - 0 error(es), 4 advertencia(s)


A que se deben estos warnings?

PostPosted: Tue Apr 24, 2007 6:53 am
by Antonio Linares
Andrés.

Es correcto el añadir la función __Run().

Esos warnings son conocidos y puedes ignorarlos. Los produce el enlazador.

Está funcionándote bien :-)

PostPosted: Tue Apr 24, 2007 9:23 am
by Andrés González
Gracias Antonio. Sí ahora funciona bien el compilado y me resuelve un tema pendiente para poder integrarlo todo en el UESTUDIO.