Compilando HWGUI
Enviado: 31 Out 2012 19:30
Usando pacote Harbour 3.0 mingw, e a versão normal do sourceforge.
Na hora de compilar, o resultado foi este:
d:\hwgui\hwgui>makemngw
gcc -Wall -mno-cygwin -O3 -march=pentium -c -Iinclude -Id:\hmg3038\harbour/include -o obj/commond.o
source/commond.c
source/commond.c: In function 'HB_FUN_SELECTFILE':
source/commond.c:136:20: warning: initialization discards qualifiers from pointer target type
source/commond.c:137:19: warning: initialization discards qualifiers from pointer target type
source/commond.c:141:20: warning: initialization discards qualifiers from pointer target type
source/commond.c:142:20: warning: initialization discards qualifiers from pointer target type
source/commond.c: In function 'HB_FUN_SAVEFILE':
source/commond.c:206:29: warning: initialization discards qualifiers from pointer target type
source/commond.c:206:51: warning: initialization discards qualifiers from pointer target type
source/commond.c:207:20: warning: initialization discards qualifiers from pointer target type
source/commond.c:208:19: warning: initialization discards qualifiers from pointer target type
source/commond.c: In function 'HB_FUN_HDGETSERIAL':
source/commond.c:320:4: warning: passing argument 1 of 'Get_SerialNumber' discards qualifiers from p
ointer target type
source/commond.c:309:15: note: expected 'char *' but argument is of type 'const char *'
source/commond.c: In function 'HB_FUN_GETPRIVATEPROFILESTRING':
source/commond.c:342:23: warning: initialization discards qualifiers from pointer target type
source/commond.c:343:21: warning: initialization discards qualifiers from pointer target type
source/commond.c:344:23: warning: initialization discards qualifiers from pointer target type
source/commond.c:345:24: warning: initialization discards qualifiers from pointer target type
source/commond.c: In function 'HB_FUN_WRITEPRIVATEPROFILESTRING':
source/commond.c:355:23: warning: initialization discards qualifiers from pointer target type
source/commond.c:356:21: warning: initialization discards qualifiers from pointer target type
source/commond.c:357:20: warning: initialization discards qualifiers from pointer target type
source/commond.c:358:23: warning: initialization discards qualifiers from pointer target type
gcc -Wall -mno-cygwin -O3 -march=pentium -c -Iinclude -Id:\hmg3038\harbour/include -o obj/animat.o s
ource/animat.c
source/animat.c: In function 'HB_FUN_ANIMATE_OPENEX':
source/animat.c:51:3: warning: passing argument 3 of 'SendMessageA' makes integer from pointer witho
ut a cast
d:\hmg3038\mingw\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winuser.h
27: note: expected
'WPARAM' but argument is of type 'struct HINSTANCE__ *'
gcc -Wall -mno-cygwin -O3 -march=pentium -c -Iinclude -Id:\hmg3038\harbour/include -o obj/control.o
source/control.c
source/control.c: In function 'HB_FUN_INITTABCONTROL':
source/control.c:558:19: warning: assignment discards qualifiers from pointer target type
source/control.c: In function 'HB_FUN_ADDTAB':
source/control.c:577:16: warning: assignment discards qualifiers from pointer target type
source/control.c: In function 'HB_FUN_ADDTABDIALOG':
source/control.c:589:16: warning: assignment discards qualifiers from pointer target type
source/control.c: In function 'HB_FUN_SETTABNAME':
source/control.c:614:16: warning: assignment discards qualifiers from pointer target type
source/control.c: In function 'HB_FUN_TREEADDNODE':
source/control.c:675:16: warning: assignment discards qualifiers from pointer target type
source/control.c: In function 'HB_FUN_TREESETITEM':
source/control.c:787:24: warning: assignment discards qualifiers from pointer target type
source/control.c: In function 'HB_FUN_TOOLBAR_SETDISPINFO':
source/control.c
25: warning: assignment discards qualifiers from pointer target type
source/control.c: In function 'HB_FUN_TOOLBAR_GETINFOTIP':
source/control.c
24: warning: assignment discards qualifiers from pointer target type
gcc -Wall -mno-cygwin -O3 -march=pentium -c -Iinclude -Id:\hmg3038\harbour/include -o obj/cxshade.o
source/cxshade.c
gcc -Wall -mno-cygwin -O3 -march=pentium -c -Iinclude -Id:\hmg3038\harbour/include -o obj/dialog.o s
ource/dialog.c
source/dialog.c: In function 'HB_FUN_COMBOADDSTRING':
source/dialog.c:180:20: warning: initialization discards qualifiers from pointer target type
source/dialog.c: In function 'HB_FUN__CREATEPROPERTYSHEETPAGE':
source/dialog.c:401:17: warning: assignment discards qualifiers from pointer target type
gcc -Wall -mno-cygwin -O3 -march=pentium -c -Iinclude -Id:\hmg3038\harbour/include -o obj/draw.o sou
rce/draw.c
source/draw.c: In function 'HB_FUN_OPENIMAGE':
source/draw.c:730:22: warning: initialization discards qualifiers from pointer target type
source/draw.c: In function 'HB_FUN_INFLATERECT':
source/draw.c:917:4: error: too many arguments to function 'hb_storni'
d:\hmg3038\harbour/include/hbapi.h:753:25: note: declared here
source/draw.c:918:4: error: too many arguments to function 'hb_storni'
d:\hmg3038\harbour/include/hbapi.h:753:25: note: declared here
source/draw.c:919:4: error: too many arguments to function 'hb_storni'
d:\hmg3038\harbour/include/hbapi.h:753:25: note: declared here
source/draw.c:920:4: error: too many arguments to function 'hb_storni'
d:\hmg3038\harbour/include/hbapi.h:753:25: note: declared here
source/draw.c: In function 'HB_FUN_OFFSETRECT':
source/draw.c:955:4: error: too many arguments to function 'hb_storni'
d:\hmg3038\harbour/include/hbapi.h:753:25: note: declared here
source/draw.c:956:4: error: too many arguments to function 'hb_storni'
d:\hmg3038\harbour/include/hbapi.h:753:25: note: declared here
source/draw.c:957:4: error: too many arguments to function 'hb_storni'
d:\hmg3038\harbour/include/hbapi.h:753:25: note: declared here
source/draw.c:958:4: error: too many arguments to function 'hb_storni'
d:\hmg3038\harbour/include/hbapi.h:753:25: note: declared here
mingw32-make.exe: *** [obj/draw.o] Error 1
d:\hwgui\hwgui>
Como posso resolver isso?
Obs. Defini HB_PATH apenas
Na hora de compilar, o resultado foi este:
d:\hwgui\hwgui>makemngw
gcc -Wall -mno-cygwin -O3 -march=pentium -c -Iinclude -Id:\hmg3038\harbour/include -o obj/commond.o
source/commond.c
source/commond.c: In function 'HB_FUN_SELECTFILE':
source/commond.c:136:20: warning: initialization discards qualifiers from pointer target type
source/commond.c:137:19: warning: initialization discards qualifiers from pointer target type
source/commond.c:141:20: warning: initialization discards qualifiers from pointer target type
source/commond.c:142:20: warning: initialization discards qualifiers from pointer target type
source/commond.c: In function 'HB_FUN_SAVEFILE':
source/commond.c:206:29: warning: initialization discards qualifiers from pointer target type
source/commond.c:206:51: warning: initialization discards qualifiers from pointer target type
source/commond.c:207:20: warning: initialization discards qualifiers from pointer target type
source/commond.c:208:19: warning: initialization discards qualifiers from pointer target type
source/commond.c: In function 'HB_FUN_HDGETSERIAL':
source/commond.c:320:4: warning: passing argument 1 of 'Get_SerialNumber' discards qualifiers from p
ointer target type
source/commond.c:309:15: note: expected 'char *' but argument is of type 'const char *'
source/commond.c: In function 'HB_FUN_GETPRIVATEPROFILESTRING':
source/commond.c:342:23: warning: initialization discards qualifiers from pointer target type
source/commond.c:343:21: warning: initialization discards qualifiers from pointer target type
source/commond.c:344:23: warning: initialization discards qualifiers from pointer target type
source/commond.c:345:24: warning: initialization discards qualifiers from pointer target type
source/commond.c: In function 'HB_FUN_WRITEPRIVATEPROFILESTRING':
source/commond.c:355:23: warning: initialization discards qualifiers from pointer target type
source/commond.c:356:21: warning: initialization discards qualifiers from pointer target type
source/commond.c:357:20: warning: initialization discards qualifiers from pointer target type
source/commond.c:358:23: warning: initialization discards qualifiers from pointer target type
gcc -Wall -mno-cygwin -O3 -march=pentium -c -Iinclude -Id:\hmg3038\harbour/include -o obj/animat.o s
ource/animat.c
source/animat.c: In function 'HB_FUN_ANIMATE_OPENEX':
source/animat.c:51:3: warning: passing argument 3 of 'SendMessageA' makes integer from pointer witho
ut a cast
d:\hmg3038\mingw\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winuser.h
'WPARAM' but argument is of type 'struct HINSTANCE__ *'
gcc -Wall -mno-cygwin -O3 -march=pentium -c -Iinclude -Id:\hmg3038\harbour/include -o obj/control.o
source/control.c
source/control.c: In function 'HB_FUN_INITTABCONTROL':
source/control.c:558:19: warning: assignment discards qualifiers from pointer target type
source/control.c: In function 'HB_FUN_ADDTAB':
source/control.c:577:16: warning: assignment discards qualifiers from pointer target type
source/control.c: In function 'HB_FUN_ADDTABDIALOG':
source/control.c:589:16: warning: assignment discards qualifiers from pointer target type
source/control.c: In function 'HB_FUN_SETTABNAME':
source/control.c:614:16: warning: assignment discards qualifiers from pointer target type
source/control.c: In function 'HB_FUN_TREEADDNODE':
source/control.c:675:16: warning: assignment discards qualifiers from pointer target type
source/control.c: In function 'HB_FUN_TREESETITEM':
source/control.c:787:24: warning: assignment discards qualifiers from pointer target type
source/control.c: In function 'HB_FUN_TOOLBAR_SETDISPINFO':
source/control.c
source/control.c: In function 'HB_FUN_TOOLBAR_GETINFOTIP':
source/control.c
gcc -Wall -mno-cygwin -O3 -march=pentium -c -Iinclude -Id:\hmg3038\harbour/include -o obj/cxshade.o
source/cxshade.c
gcc -Wall -mno-cygwin -O3 -march=pentium -c -Iinclude -Id:\hmg3038\harbour/include -o obj/dialog.o s
ource/dialog.c
source/dialog.c: In function 'HB_FUN_COMBOADDSTRING':
source/dialog.c:180:20: warning: initialization discards qualifiers from pointer target type
source/dialog.c: In function 'HB_FUN__CREATEPROPERTYSHEETPAGE':
source/dialog.c:401:17: warning: assignment discards qualifiers from pointer target type
gcc -Wall -mno-cygwin -O3 -march=pentium -c -Iinclude -Id:\hmg3038\harbour/include -o obj/draw.o sou
rce/draw.c
source/draw.c: In function 'HB_FUN_OPENIMAGE':
source/draw.c:730:22: warning: initialization discards qualifiers from pointer target type
source/draw.c: In function 'HB_FUN_INFLATERECT':
source/draw.c:917:4: error: too many arguments to function 'hb_storni'
d:\hmg3038\harbour/include/hbapi.h:753:25: note: declared here
source/draw.c:918:4: error: too many arguments to function 'hb_storni'
d:\hmg3038\harbour/include/hbapi.h:753:25: note: declared here
source/draw.c:919:4: error: too many arguments to function 'hb_storni'
d:\hmg3038\harbour/include/hbapi.h:753:25: note: declared here
source/draw.c:920:4: error: too many arguments to function 'hb_storni'
d:\hmg3038\harbour/include/hbapi.h:753:25: note: declared here
source/draw.c: In function 'HB_FUN_OFFSETRECT':
source/draw.c:955:4: error: too many arguments to function 'hb_storni'
d:\hmg3038\harbour/include/hbapi.h:753:25: note: declared here
source/draw.c:956:4: error: too many arguments to function 'hb_storni'
d:\hmg3038\harbour/include/hbapi.h:753:25: note: declared here
source/draw.c:957:4: error: too many arguments to function 'hb_storni'
d:\hmg3038\harbour/include/hbapi.h:753:25: note: declared here
source/draw.c:958:4: error: too many arguments to function 'hb_storni'
d:\hmg3038\harbour/include/hbapi.h:753:25: note: declared here
mingw32-make.exe: *** [obj/draw.o] Error 1
d:\hwgui\hwgui>
Como posso resolver isso?
Obs. Defini HB_PATH apenas