FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Harbour/xHarbour Error E2227 fi_wrp.c 510: Extra parameter in call to FreeIma
Posts: 632
Joined: Thu Jan 19, 2006 10:45 AM
Error E2227 fi_wrp.c 510: Extra parameter in call to FreeIma
Posted: Sun Jun 12, 2011 11:31 AM
Estoy intentando compilar el ejemplo de harbour g:\HARBOUR\trunk\harbour\contrib\hbfimage y me genera los siguientes errores, sabeis a que se debe tanto el error E2227 como el E2342, donde puedo encontrar información?


--------------------Configuración: TIF - Release--------------------
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
G:\policia\winpol\TIF\Source\fi_winfu.c:
TLIB 4.5 Copyright (c) 1987, 1999 Inprise Corporation
Warning: 'fi_winfu' not found in library
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
G:\policia\winpol\TIF\Source\fi_wrp.c:
Error E2227 G:\policia\winpol\TIF\Source\fi_wrp.c 510: Extra parameter in call to FreeImage_OpenMultiBitmap in function HB_FUN_FI_OPENMULTIBITMAP
Warning W8004 G:\policia\winpol\TIF\Source\fi_wrp.c 515: 'flags' is assigned a value that is never used in function HB_FUN_FI_OPENMULTIBITMAP
Warning W8065 G:\policia\winpol\TIF\Source\fi_wrp.c 1840: Call to function 'FreeImage_ConvertToGreyscale' with no prototype in function HB_FUN_FI_CONVERTTOGREYSCALE
Error E2342 G:\policia\winpol\TIF\Source\fi_wrp.c 1840: Type mismatch in parameter 'ptr' (wanted 'void *', got 'int') in function HB_FUN_FI_CONVERTTOGREYSCALE
Warning W8004 G:\policia\winpol\TIF\Source\fi_wrp.c 1841: 'dib' is assigned a value that is never used in function HB_FUN_FI_CONVERTTOGREYSCALE
Warning W8065 G:\policia\winpol\TIF\Source\fi_wrp.c 2038: Call to function 'FreeImage_ConvertToRGBF' with no prototype in function HB_FUN_FI_CONVERTTORGBF
Error E2342 G:\policia\winpol\TIF\Source\fi_wrp.c 2038: Type mismatch in parameter 'ptr' (wanted 'void *', got 'int') in function HB_FUN_FI_CONVERTTORGBF
Warning W8004 G:\policia\winpol\TIF\Source\fi_wrp.c 2039: 'dib' is assigned a value that is never used in function HB_FUN_FI_CONVERTTORGBF
*** 3 errors in Compile ***
TLIB 4.5 Copyright (c) 1987, 1999 Inprise Corporation
Warning: 'fi_wrp' not found in library
Warning: 'fi_wrp.obj' file not found
Harbour 2.1.0rc2 (Rev. 16871)
Copyright (c) 1999-2011, http://harbour-project.org/
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
Main.c:
TLIB 4.5 Copyright (c) 1987, 1999 Inprise Corporation
Warning: 'Main' not found in library
TIF.LIB - 3 error(es), 9 advertencia(s)
Saludos



Andrés González desde Mallorca
Posts: 989
Joined: Thu Nov 24, 2005 03:01 PM
Re: Error E2227 fi_wrp.c 510: Extra parameter in call to FreeIma
Posted: Thu Jun 16, 2011 09:11 AM

Hola Andrés,
la compilación con Borland suele tener algunos inconvenientes. Aún así acabo de generar la lib de hbfimage sin problemas.
He bajado del SVN todo el proyecto harbour, incluyendo las contribs, habilité la generación de hbfimage y ha funcionado a la primera.

Si te parece me pasas un mail y te reenvío la lib

Saludos
Carlos Mora
http://harbouradvisor.blogspot.com/
StackOverflow http://stackoverflow.com/users/549761/carlos-mora
“If you think education is expensive, try ignorance"
Posts: 632
Joined: Thu Jan 19, 2006 10:45 AM
Re: Error E2227 fi_wrp.c 510: Extra parameter in call to FreeIma
Posted: Thu Jun 16, 2011 12:39 PM

Gracias Carlos, descubri el problema. Se trataba de que mezclaba el Harbour con el Harbour nightly y por eso me dio el error. Al regenerarlo todo con harbour me ha ido todo bien. Al parecer cuando le indicas el path del nightly (c:\hb21\bin) se hacía un lio cuando intentabas compilar algo del harbour del svn (c:\harbour\trunc...\bin). Supongo que necesitas tener todo integrado en el mismo sitio para que funcionen bien los ejemplos.

Saludos



Andrés González desde Mallorca

Continue the discussion