Page 2 of 3

Re: New FWPPC 9.01

PostPosted: Thu Feb 12, 2009 9:56 am
by softruz
Estos son los errores:
Harbour devel build 1.1-1 Intl.
Copyright 1999-2007, http://www.harbour-project.org/
Compiling 'tosfrit.prg' and generating preprocessed output to 'tosfrit.ppo'...
Lines 3513, Functions/Procedures 55
Generating C source output to 'tosfrit.c'... Done.
Microsoft (R) C/C++ Optimizing Compiler Version 12.20.9615 for ARM
Copyright (C) Microsoft Corp 1984-2002. All rights reserved.

tosfrit.c
Creating library tosfrit.lib and object tosfrit.exp
FiveCE.lib(REG32.obj) : error LNK2001: unresolved external symbol HB_FUN_ANSITOWIDE
FiveCEC.lib(RECTS.obj) : error LNK2019: unresolved external symbol FrameRect referenced in function FrameDot
rtl.lib(seconds.obj) : error LNK2019: unresolved external symbol GetProcessTimes referenced in function hb_secondsCPU
rtl.lib(gttone.obj) : error LNK2019: unresolved external symbol Beep referenced in function hb_gt_wNtTone
tosfrit.exe : fatal error LNK1120: 4 unresolved externals

Re: New FWPPC 9.01

PostPosted: Thu Feb 12, 2009 10:31 am
by Antonio Linares
Añade la siguiente función a tu PRG principal:
Code: Select all  Expand view
function AnsiToWide( c )

return FW_AnsiToWide( c )

Re: New FWPPC 9.01

PostPosted: Thu Feb 12, 2009 10:35 am
by Antonio Linares
Tambien añade este código a tu PRG principal:
Code: Select all  Expand view
#pragma BEGINDUMP

#include <windows.h>

int FrameRect( HDC hDC, const RECT *lprc, HBRUSH hbr )
{
   return 0;
}

#pragma ENDDUMP

Re: New FWPPC 9.01

PostPosted: Thu Feb 12, 2009 11:27 am
by Antonio Linares
Estas usando el Harbour más reciente descargable desde la página de FWPPC ?

Por favor, comprueba que lo hayas descargado y que estes usando el correcto, gracias :-)

Re: New FWPPC 9.01

PostPosted: Thu Feb 12, 2009 11:28 am
by softruz
He añadido dichas funciones y este es el resultado:


Compilando...
Harbour devel build 1.1-1 Intl.
Copyright 1999-2007, http://www.harbour-project.org/
Compiling 'tosfrit.prg' and generating preprocessed output to 'tosfrit.ppo'...
Lines 3527, Functions/Procedures 56
Generating C source output to 'tosfrit.c'... Done.
Microsoft (R) C/C++ Optimizing Compiler Version 12.20.9615 for ARM
Copyright (C) Microsoft Corp 1984-2002. All rights reserved.

tosfrit.c
Creating library tosfrit.lib and object tosfrit.exp
FiveCEC.lib(RECTS.obj) : error LNK2019: unresolved external symbol FrameRect referenced in function FrameDot
rtl.lib(seconds.obj) : error LNK2019: unresolved external symbol GetProcessTimes referenced in function hb_secondsCPU
rtl.lib(gttone.obj) : error LNK2019: unresolved external symbol Beep referenced in function hb_gt_wNtTone
tosfrit.exe : fatal error LNK1120: 3 unresolved externals

Re: New FWPPC 9.01

PostPosted: Thu Feb 12, 2009 11:34 am
by Antonio Linares
Has incluido la función en C que te he indicado ?

Comprueba si al llamar al compilador de C estas usando el flag -TP. No debe usarse.

Finalmente comprueba que estes usando el Harbour para FWPPC más reciente, desde la página de FWPPC.

E informame de como sigue, gracias :-)

Re: New FWPPC 9.01

PostPosted: Thu Feb 12, 2009 11:41 am
by softruz
Muy buenas, no había actualizado el harbour_ce, pero ahora me resulta:

LINK : fatal error LNK1181: cannot open input file 'c:\harbour_CE\lib\rtl.lib'
No se encuentra C:\FWPPC\samples\ppc\TosFritVero\tosfrit.exp
No se encuentra C:\FWPPC\samples\ppc\TosFritVero\tosfrit.lib

Re: New FWPPC 9.01

PostPosted: Thu Feb 12, 2009 11:44 am
by Antonio Linares
> no había actualizado el harbour_ce

Bien, vamos avanzando :-)

> LINK : fatal error LNK1181: cannot open input file 'c:\harbour_CE\lib\rtl.lib'

Los nombres de las librerias de Harbour han cambiado. Ahora la mayoria usan "hb" delante, por ejemplo:
hbrtl.lib en vez de rtl.lib

Por favor revisa FWPPC\samples\buildce.bat para que veas los nuevos nombres de las librerias de Harbour. Si, es una lata, pero es lo que se ha decidido en el equipo de desarrollo de Harbour :-)

Re: New FWPPC 9.01

PostPosted: Thu Feb 12, 2009 12:05 pm
by softruz
Gracias Antonio lo prueba y te comento.

Un Saludo.

Re: New FWPPC 9.01

PostPosted: Mon Feb 16, 2009 10:51 am
by softruz
Muy buenas Antonio, ahora me dá los siguientes errores:


Compilando...
Harbour 1.0.1dev Intl. (Rev. 9361)
Copyright (c) 1999-2008, http://www.harbour-project.org/
Compiling 'tosfrit.prg' and generating preprocessed output to 'tosfrit.ppo'...
Lines 3663, Functions/Procedures 56
Generating C source output to 'tosfrit.c'... Done.
Microsoft (R) C/C++ Optimizing Compiler Version 12.20.9615 for ARM
Copyright (C) Microsoft Corp 1984-2002. All rights reserved.

tosfrit.c
hbvm.lib(hvm.obj) : warning LNK1166: cannot adjust code at offset=0x00001000, rva=0x000580BC
hbmacro.lib(macrob.obj) : warning LNK1166: cannot adjust code at offset=0x00001000, rva=0x00095CAC
hbrdd.lib(dbf1.obj) : warning LNK1166: cannot adjust code at offset=0x00001000, rva=0x000AF7EC
rddntx.lib(dbfntx1.obj) : warning LNK1166: cannot adjust code at offset=0x00001000, rva=0x000C1E7C
rddcdx.lib(dbfcdx1.obj) : warning LNK1166: cannot adjust code at offset=0x00001000, rva=0x000D8ACC
rddfpt.lib(dbffpt1.obj) : warning LNK1166: cannot adjust code at offset=0x00001000, rva=0x000F432C
No se encuentra C:\FWPPC\SAMPLES\ppc\TosFrit09\tosfrit.exp
No se encuentra C:\FWPPC\SAMPLES\ppc\TosFrit09\tosfrit.lib

Un Saludo.

Re: New FWPPC 9.01

PostPosted: Mon Feb 16, 2009 11:09 am
by softruz
Solucionado, le he añadido

echo %hdir%\lib\hbpcre.lib >> msvc.tmp

Y lo hace correcto pero aumenta considerablemente el tamaño del fichero .exe.

Un Saludo.

Re: New FWPPC 9.01

PostPosted: Mon Feb 16, 2009 11:09 am
by Antonio Linares
Esos warnings los eliminas usando este flag al llamar al link.exe:

/ARMPADCODE:NO

Vuelve a probarlo con ese flag, gracias :-)

Re: New FWPPC 9.01

PostPosted: Mon Feb 16, 2009 11:11 am
by Antonio Linares
> pero aumenta considerablemente el tamaño del fichero .exe

Es lo que ha aumentado Harbour, internamente, ultimamente.

Es más potente y más estable, pero ocupa más.

Re: New FWPPC 9.01

PostPosted: Wed Jun 17, 2009 11:37 am
by Ross_ValuSoft
Hello Antonio,

Can we expect a new release of FWPPC before the end of June 2009?

Best wishes,

Ross McKenzie
ValuSoft
Melbourne Australia

Re: New FWPPC 9.01

PostPosted: Wed Jun 17, 2009 12:13 pm
by Antonio Linares
Ross,

We will probably publish the next FWPPC version in July this year :-)

We have a lot of new Classes for FWPPC, but we are still working on them.