FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Harbour/xHarbour TGraph 2.0 de Alfredo Arteaga
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
TGraph 2.0 de Alfredo Arteaga
Posted: Sun Jul 15, 2007 06:33 PM

George,

Usa hbapi.h en vez de clipapi.h

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 729
Joined: Tue Oct 18, 2005 06:49 PM
TGraph 2.0 de Alfredo Arteaga
Posted: Mon Jul 16, 2007 02:59 AM
Antonio,

Hice la sustitucion del clipapi.h por hbapi.h pero sigue dando errores.
Es posible que el problema viene porque xHarbour builder usa el compilador PellesC.

Por otro lado te informo que compile el ejemplo test.prg de FWH\samples\tgraph con xHarbour y me dio el mismo problema de que solo me salva un BMP con un cuadrado blanco y una X roja en el medio.

Cuando compile el ejemplo con Harbour me funciono perfecto. Asi que pude comprobar que el problema viene dado con xHarbour builder.

Mas abajo te muestro los errores al tratar de compliar dib.c sustituyendo clipapi.h por hbapi.h.

Type: C >>>xcc.exe -Fo"dib.obj" -Ot   -I"C:\xHBJan07\include" -I"C:\xHBJan07\c_include" -I"C:\xHBJan07\c_include\win" -I"C:\xHBJan07\c_include\msvc" "C:\_AML_SOFT\dib.c"<<<

C:\_AML_SOFT\dib.c(18): warning: Missing type specifier.

C:\_AML_SOFT\dib.c(68): error: Undeclared identifier 'READ'.

C:\_AML_SOFT\dib.c(90): warning: Local 'dwClrUsed' is not referenced.

C:\_AML_SOFT\dib.c(198): warning: Local 'hBmpOld' is not referenced.

C:\_AML_SOFT\dib.c(238): warning: Missing type specifier.

C:\_AML_SOFT\dib.c(238): error: Syntax error; found 'DIBREAD' expecting ';'.

C:\_AML_SOFT\dib.c(238): warning: Missing type specifier.

C:\_AML_SOFT\dib.c(239): warning: Missing prototype for 'DIBREAD'.

C:\_AML_SOFT\dib.c(240): warning: Missing prototype for '_retnl'.

C:\_AML_SOFT\dib.c(240): warning: Missing prototype for '_parc'.

C:\_AML_SOFT\dib.c(240): warning: Conversion from 'char *' to 'int' is undefined.

C:\_AML_SOFT\dib.c(241): warning: Missing return value.

C:\_AML_SOFT\dib.c(245): warning: Missing type specifier.

C:\_AML_SOFT\dib.c(245): error: Syntax error; found 'DIBPALETTE' expecting ';'.

C:\_AML_SOFT\dib.c(245): warning: Missing type specifier.

C:\_AML_SOFT\dib.c(246): warning: Missing prototype for 'DIBPALETTE'.

C:\_AML_SOFT\dib.c(247): warning: Missing prototype for '_retnl'.

C:\_AML_SOFT\dib.c(247): warning: Missing prototype for '_parnl'.

C:\_AML_SOFT\dib.c(248): warning: Missing return value.

C:\_AML_SOFT\dib.c(252): warning: Missing type specifier.

C:\_AML_SOFT\dib.c(252): error: Syntax error; found 'DIBDRAW' expecting ';'.

C:\_AML_SOFT\dib.c(252): warning: Missing type specifier.

C:\_AML_SOFT\dib.c(253): warning: Missing prototype for 'DIBDRAW'.

C:\_AML_SOFT\dib.c(254): warning: Missing prototype for '_parnl'.

C:\_AML_SOFT\dib.c(259): warning: Missing prototype for '_retl'.

C:\_AML_SOFT\dib.c(259): warning: Missing prototype for '_parni'.

C:\_AML_SOFT\dib.c(261): warning: Conversion from 'void *' to 'unsigned int' is undefined.

C:\_AML_SOFT\dib.c(262): warning: Missing return value.

C:\_AML_SOFT\dib.c(266): warning: Missing type specifier.

C:\_AML_SOFT\dib.c(266): error: Syntax error; found 'DIBWIDTH' expecting ';'.

C:\_AML_SOFT\dib.c(266): warning: Missing type specifier.

C:\_AML_SOFT\dib.c(267): warning: Missing prototype for 'DIBWIDTH'.

C:\_AML_SOFT\dib.c(268): warning: Missing prototype for '_parnl'.

C:\_AML_SOFT\dib.c(273): warning: Missing prototype for '_retni'.

C:\_AML_SOFT\dib.c(276): warning: Missing return value.

C:\_AML_SOFT\dib.c(280): warning: Missing type specifier.

C:\_AML_SOFT\dib.c(280): error: Syntax error; found 'DIBHEIGHT' expecting ';'.

C:\_AML_SOFT\dib.c(280): warning: Missing type specifier.

C:\_AML_SOFT\dib.c(281): warning: Missing prototype for 'DIBHEIGHT'.

C:\_AML_SOFT\dib.c(282): warning: Missing prototype for '_parnl'.

C:\_AML_SOFT\dib.c(287): warning: Missing prototype for '_retni'.

C:\_AML_SOFT\dib.c(290): warning: Missing return value.

C:\_AML_SOFT\dib.c(297): error: Undefined size for 'huge' with type 'void'.

C:\_AML_SOFT\dib.c(297): error: Syntax error; found '*' expecting ';'.

C:\_AML_SOFT\dib.c(297): error: Undeclared identifier 'Bits'.

C:\_AML_SOFT\dib.c(297): error: Type error: pointer expected.

C:\_AML_SOFT\dib.c(297): error: Syntax error; found 'huge' expecting ')'.

C:\_AML_SOFT\dib.c(297): error: Illegal expression.

C:\_AML_SOFT\dib.c(297): error: Found 'int' expected a function.

C:\_AML_SOFT\dib.c(298): error: Operands of * have illegal types 'void' and 'void'.

C:\_AML_SOFT\dib.c(303): warning: Excess characters in multibyte character literal ignored.

C:\_AML_SOFT\dib.c(337): warning: Missing type specifier.

C:\_AML_SOFT\dib.c(337): error: Syntax error; found 'FWHdibwrite' expecting ';'.

C:\_AML_SOFT\dib.c(337): warning: Missing type specifier.

C:\_AML_SOFT\dib.c(338): error: Conflicting argument declarations for function 'FWHdibwrite'.

C:\_AML_SOFT\dib.c(338): error: Redefinition of 'FWHdibwrite' previously defined at C:\_AML_SOFT\dib.c(294).

C:\_AML_SOFT\dib.c(339): warning: Missing prototype for '_retl'.

C:\_AML_SOFT\dib.c(339): warning: Missing prototype for '_parc'.

C:\_AML_SOFT\dib.c(339): warning: Conversion from 'char *' to 'int' is undefined.

C:\_AML_SOFT\dib.c(339): warning: Missing prototype for '_parnl'.

C:\_AML_SOFT\dib.c(340): warning: Missing return value.


Type: C >>>Couldn't build: dib.obj<<<
Type: C >>>TMAKEOBJECT<<<
Type: C >>>TMAKEOBJECT:REFRESH<<<
Type: N >>>      1278<<<


Saludos,


George

Continue the discussion