Thanks Mindaugas,Pripal,Viktor
now i am convinced that problem is due from my config , and
particularry my mingw
in next day i reinstall on new machine
only for document this is my version
c:\harbour>gcc --version
gcc (GCC) 3.4.5 (mingw-vista special r3)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Here i can reproduce my error
cd \harbour\contrib\gtwvg\win\mingw
gcc -I. -I../../../../include  -Wall -W -O3 -fomit-frame-pointer
-march=i586 -mtune=pentiumpro  -I../../../../contrib/hbwin  -c
../../wvgsink.c -owvgsink.o

../../wvgsink.c: In function 'QueryInterface':
../../wvgsink.c:238: warning: implicit declaration of function 'HB_VTBL'
../../wvgsink.c:238: error: invalid type argument of '->' (have 'int')
../../wvgsink.c:238: warning: implicit declaration of function 'HB_THIS'
../../wvgsink.c:248: error: invalid type argument of '->' (have 'int')
../../wvgsink.c:260: error: invalid type argument of '->' (have 'int')
../../wvgsink.c: In function 'SetupConnectionPoint':
../../wvgsink.c:470: error: invalid type argument of '->' (have 'int')
../../wvgsink.c:470: warning: implicit declaration of function 'HB_THIS_'
../../wvgsink.c:470: error: called object 'HB_THIS_(thisobj)' is not a function
../../wvgsink.c:473: error: invalid type argument of '->' (have 'int')
../../wvgsink.c:473: error: called object 'HB_THIS_(pdevice_interface)' is not a
 function
../../wvgsink.c:476: error: invalid type argument of '->' (have 'int')
../../wvgsink.c:476: error: invalid operands to binary & (have 'int' and 'struct
 IEnumConnectionPoints *')
../../wvgsink.c:481: error: invalid type argument of '->' (have 'int')
../../wvgsink.c:481: error: expected ')' before numeric constant
../../wvgsink.c:484: error: invalid type argument of '->' (have 'int')
../../wvgsink.c:484: error: invalid operands to binary & (have 'int' and 'IID')
../../wvgsink.c:495: error: invalid type argument of '->' (have 'int')
../../wvgsink.c:495: error: expected ')' before 'pIUnknown'
../../wvgsink.c:508: error: invalid type argument of '->' (have 'int')
../../wvgsink.c:511: error: invalid type argument of '->' (have 'int')
../../wvgsink.c:514: error: invalid type argument of '->' (have 'int')
../../wvgsink.c: In function 'HB_FUN_WVG_AXSHUTDOWNCONNECTIONPOINT':
../../wvgsink.c:549: error: invalid type argument of '->' (have 'int')
../../wvgsink.c:549: error: expected ')' before 'pSink'
../../wvgsink.c:550: error: invalid type argument of '->' (have 'int')
../../wvgsink.c:558: error: invalid type argument of '->' (have 'int')
../../wvgsink.c: In function 'HB_FUN_WVG_AXGETCONTROL':
../../wvgsink.c:605: error: invalid type argument of '->' (have 'int')
../../wvgsink.c:605: error: called object 'HB_THIS_(pUnk)' is not a function
../../wvgsink.c:606: error: invalid type argument of '->' (have 'int')
../../wvgsink.c: In function 'HB_FUN_WVG_AXDOVERB':
../../wvgsink.c:634: error: invalid type argument of '->' (have 'int')
../../wvgsink.c:634: error: called object 'HB_THIS_(pUnk)' is not a function
../../wvgsink.c:639: error: invalid type argument of '->' (have 'int')
../../wvgsink.c:639: error: invalid operands to binary & (have 'int' and 'struct
 IOleClientSite *')
../../wvgsink.c:647: error: invalid type argument of '->' (have 'int')
../../wvgsink.c:647: error: expected ')' before 'hb_parni'

receive same error also from
gcc (TDM-1 mingw32) 4.4.0
Copyright (C) 2009 Free Software Foundation, Inc.


2009/6/8 Mindaugas Kavaliauskas <dbto...@dbtopas.lt>:
> Massimo Belgrano wrote:
>>
>> i found follow warning for gtwvg (not related to this problem)
>> but i not have also gtwvg.lib/ libgtwvg.a
>> ../../wvgsink.c:238: warning: implicit declaration of function 'HB_VTBL'
>> ../../wvgsink.c:238: error: invalid type argument of '->' (have 'int')
>> ../../wvgsink.c:238: warning: implicit declaration of function 'HB_THIS'
>> ../../wvgsink.c:248: error: invalid type argument of '->' (have 'int')
>> ../../wvgsink.c:260: error: invalid type argument of '->' (have 'int')
>> ../../wvgsink.c: In function 'SetupConnectionPoint':
>> ../../wvgsink.c:470: error: invalid type argument of '->' (have 'int')
>>
>> gtwvg is broken?
>
> Hi,
>
>
> I've tried to compile gtwvg using mingw. It compiles without problem for me.
>
>
> Regards,
> Mindaugas
>
>
> C:/harbour/config/mingw32-make -C contrib
> mingw32-make[1]: Entering directory `C:/harbour/contrib'
> C:/harbour/config/mingw32-make -C gtwvg
> mingw32-make[2]: Entering directory `C:/harbour/contrib/gtwvg'
>
> C:\harbour\contrib\gtwvg>if not exist win\. md win
>
> C:\harbour\contrib\gtwvg>if not exist win\mingw\. md win\mingw
>
> C:\harbour\contrib\gtwvg>if not exist ..\..\lib\win\. md ..\..\lib\win
>
> C:\harbour\contrib\gtwvg>if not exist ..\..\lib\win\mingw\. md
> ..\..\lib\win\mingw
>
> C:\harbour\contrib\gtwvg>if not exist win\. md win
>
> C:\harbour\contrib\gtwvg>if not exist win\mingw\. md win\mingw
>
> C:\harbour\contrib\gtwvg>if not exist ..\..\lib\win\. md ..\..\lib\win
>
> C:\harbour\contrib\gtwvg>if not exist ..\..\lib\win\mingw\. md
> ..\..\lib\win\mingw
> mingw32-make[3]: Entering directory `C:/harbour/contrib/gtwvg/win/mingw'
> gcc -I. -I../../../../include  -Wall -W -O3 -fomit-frame-pointer -march=i586
> -mtune=pentiumpro  -DHB_FM_STATISTICS_OFF -I../../contrib/hbwin
> -I../../../../contrib/hbwin  -c ../../gtwvg.c -ogtwvg.o
> gcc -I. -I../../../../include  -Wall -W -O3 -fomit-frame-pointer -march=i586
> -mtune=pentiumpro  -DHB_FM_STATISTICS_OFF -I../../contrib/hbwin
> -I../../../../contrib/hbwin  -c ../../wvgcore.c -owvgcore.o
> gcc -I. -I../../../../include  -Wall -W -O3 -fomit-frame-pointer -march=i586
> -mtune=pentiumpro  -DHB_FM_STATISTICS_OFF -I../../contrib/hbwin
> -I../../../../contrib/hbwin  -c ../../wvgutils.c -owvgutils.o
> gcc -I. -I../../../../include  -Wall -W -O3 -fomit-frame-pointer -march=i586
> -mtune=pentiumpro  -DHB_FM_STATISTICS_OFF -I../../contrib/hbwin
> -I../../../../contrib/hbwin  -c ../../wvgwin.c -owvgwin.o
> gcc -I. -I../../../../include  -Wall -W -O3 -fomit-frame-pointer -march=i586
> -mtune=pentiumpro  -DHB_FM_STATISTICS_OFF -I../../contrib/hbwin
> -I../../../../contrib/hbwin  -c ../../wvgsink.c -owvgsink.o
> gcc -I. -I../../../../include  -Wall -W -O3 -fomit-frame-pointer -march=i586
> -mtune=pentiumpro  -DHB_FM_STATISTICS_OFF -I../../contrib/hbwin
> -I../../../../contrib/hbwin  -c ../../wvggui.c -owvggui.o
> gcc -I. -I../../../../include  -Wall -W -O3 -fomit-frame-pointer -march=i586
> -mtune=pentiumpro  -DHB_FM_STATISTICS_OFF -I../../contrib/hbwin
> -I../../../../contrib/hbwin  -c ../../wincallb.c -owincallb.o
> gcc -I. -I../../../../include  -Wall -W -O3 -fomit-frame-pointer -march=i586
> -mtune=pentiumpro  -DHB_FM_STATISTICS_OFF -I../../contrib/hbwin
> -I../../../../contrib/hbwin  -c ../../wvgcuig.c -owvgcuig.o
> ../../../../source/main/win/mingw/harbour.exe ../../wvgclass.prg -n1
> -i../../../../include -q0 -w3 -es2 -kmo -l -gc0
> gcc -I. -I../../../../include  -Wall -W -O3 -fomit-frame-pointer -march=i586
> -mtune=pentiumpro  -DHB_FM_STATISTICS_OFF -I../../contrib/hbwin
> -I../../../../contrib/hbwin  -c wvgclass.c -owvgclass.o
> ../../../../source/main/win/mingw/harbour.exe ../../wvgpaint.prg -n1
> -i../../../../include -q0 -w3 -es2 -kmo -l -gc0
> gcc -I. -I../../../../include  -Wall -W -O3 -fomit-frame-pointer -march=i586
> -mtune=pentiumpro  -DHB_FM_STATISTICS_OFF -I../../contrib/hbwin
> -I../../../../contrib/hbwin  -c wvgpaint.c -owvgpaint.o
> ../../../../source/main/win/mingw/harbour.exe ../../wvgphdlr.prg -n1
> -i../../../../include -q0 -w3 -es2 -kmo -l -gc0
> gcc -I. -I../../../../include  -Wall -W -O3 -fomit-frame-pointer -march=i586
> -mtune=pentiumpro  -DHB_FM_STATISTICS_OFF -I../../contrib/hbwin
> -I../../../../contrib/hbwin  -c wvgphdlr.c -owvgphdlr.o
> ../../../../source/main/win/mingw/harbour.exe ../../wvgwnd.prg -n1
> -i../../../../include -q0 -w3 -es2 -kmo -l -gc0
> gcc -I. -I../../../../include  -Wall -W -O3 -fomit-frame-pointer -march=i586
> -mtune=pentiumpro  -DHB_FM_STATISTICS_OFF -I../../contrib/hbwin
> -I../../../../contrib/hbwin  -c wvgwnd.c -owvgwnd.o
> ../../../../source/main/win/mingw/harbour.exe ../../wvgcrt.prg -n1
> -i../../../../include -q0 -w3 -es2 -kmo -l -gc0
> gcc -I. -I../../../../include  -Wall -W -O3 -fomit-frame-pointer -march=i586
> -mtune=pentiumpro  -DHB_FM_STATISTICS_OFF -I../../contrib/hbwin
> -I../../../../contrib/hbwin  -c wvgcrt.c -owvgcrt.o
> ../../../../source/main/win/mingw/harbour.exe ../../wvgax.prg -n1
> -i../../../../include -q0 -w3 -es2 -kmo -l -gc0
> gcc -I. -I../../../../include  -Wall -W -O3 -fomit-frame-pointer -march=i586
> -mtune=pentiumpro  -DHB_FM_STATISTICS_OFF -I../../contrib/hbwin
> -I../../../../contrib/hbwin  -c wvgax.c -owvgax.o
> ../../../../source/main/win/mingw/harbour.exe ../../wvgdlg.prg -n1
> -i../../../../include -q0 -w3 -es2 -kmo -l -gc0
> gcc -I. -I../../../../include  -Wall -W -O3 -fomit-frame-pointer -march=i586
> -mtune=pentiumpro  -DHB_FM_STATISTICS_OFF -I../../contrib/hbwin
> -I../../../../contrib/hbwin  -c wvgdlg.c -owvgdlg.o
> ../../../../source/main/win/mingw/harbour.exe ../../wvgmenub.prg -n1
> -i../../../../include -q0 -w3 -es2 -kmo -l -gc0
> gcc -I. -I../../../../include  -Wall -W -O3 -fomit-frame-pointer -march=i586
> -mtune=pentiumpro  -DHB_FM_STATISTICS_OFF -I../../contrib/hbwin
> -I../../../../contrib/hbwin  -c wvgmenub.c -owvgmenub.o
> ../../../../source/main/win/mingw/harbour.exe ../../wvgtoolb.prg -n1
> -i../../../../include -q0 -w3 -es2 -kmo -l -gc0
> gcc -I. -I../../../../include  -Wall -W -O3 -fomit-frame-pointer -march=i586
> -mtune=pentiumpro  -DHB_FM_STATISTICS_OFF -I../../contrib/hbwin
> -I../../../../contrib/hbwin  -c wvgtoolb.c -owvgtoolb.o
> ../../../../source/main/win/mingw/harbour.exe ../../wvgcombo.prg -n1
> -i../../../../include -q0 -w3 -es2 -kmo -l -gc0
> gcc -I. -I../../../../include  -Wall -W -O3 -fomit-frame-pointer -march=i586
> -mtune=pentiumpro  -DHB_FM_STATISTICS_OFF -I../../contrib/hbwin
> -I../../../../contrib/hbwin  -c wvgcombo.c -owvgcombo.o
> ../../../../source/main/win/mingw/harbour.exe ../../wvglistb.prg -n1
> -i../../../../include -q0 -w3 -es2 -kmo -l -gc0
> gcc -I. -I../../../../include  -Wall -W -O3 -fomit-frame-pointer -march=i586
> -mtune=pentiumpro  -DHB_FM_STATISTICS_OFF -I../../contrib/hbwin
> -I../../../../contrib/hbwin  -c wvglistb.c -owvglistb.o
> ../../../../source/main/win/mingw/harbour.exe ../../wvgpushb.prg -n1
> -i../../../../include -q0 -w3 -es2 -kmo -l -gc0
> gcc -I. -I../../../../include  -Wall -W -O3 -fomit-frame-pointer -march=i586
> -mtune=pentiumpro  -DHB_FM_STATISTICS_OFF -I../../contrib/hbwin
> -I../../../../contrib/hbwin  -c wvgpushb.c -owvgpushb.o
> ../../../../source/main/win/mingw/harbour.exe ../../wvgstatb.prg -n1
> -i../../../../include -q0 -w3 -es2 -kmo -l -gc0
> gcc -I. -I../../../../include  -Wall -W -O3 -fomit-frame-pointer -march=i586
> -mtune=pentiumpro  -DHB_FM_STATISTICS_OFF -I../../contrib/hbwin
> -I../../../../contrib/hbwin  -c wvgstatb.c -owvgstatb.o
> ../../../../source/main/win/mingw/harbour.exe ../../wvgstatc.prg -n1
> -i../../../../include -q0 -w3 -es2 -kmo -l -gc0
> gcc -I. -I../../../../include  -Wall -W -O3 -fomit-frame-pointer -march=i586
> -mtune=pentiumpro  -DHB_FM_STATISTICS_OFF -I../../contrib/hbwin
> -I../../../../contrib/hbwin  -c wvgstatc.c -owvgstatc.o
> ../../../../source/main/win/mingw/harbour.exe ../../wvgtreev.prg -n1
> -i../../../../include -q0 -w3 -es2 -kmo -l -gc0
> gcc -I. -I../../../../include  -Wall -W -O3 -fomit-frame-pointer -march=i586
> -mtune=pentiumpro  -DHB_FM_STATISTICS_OFF -I../../contrib/hbwin
> -I../../../../contrib/hbwin  -c wvgtreev.c -owvgtreev.o
> ../../../../source/main/win/mingw/harbour.exe ../../wincback.prg -n1
> -i../../../../include -q0 -w3 -es2 -kmo -l -gc0
> gcc -I. -I../../../../include  -Wall -W -O3 -fomit-frame-pointer -march=i586
> -mtune=pentiumpro  -DHB_FM_STATISTICS_OFF -I../../contrib/hbwin
> -I../../../../contrib/hbwin  -c wincback.c -owincback.o
> ../../../../source/main/win/mingw/harbour.exe ../../wvgcheck.prg -n1
> -i../../../../include -q0 -w3 -es2 -kmo -l -gc0
> gcc -I. -I../../../../include  -Wall -W -O3 -fomit-frame-pointer -march=i586
> -mtune=pentiumpro  -DHB_FM_STATISTICS_OFF -I../../contrib/hbwin
> -I../../../../contrib/hbwin  -c wvgcheck.c -owvgcheck.o
> ../../../../source/main/win/mingw/harbour.exe ../../wvgdatar.prg -n1
> -i../../../../include -q0 -w3 -es2 -kmo -l -gc0
> gcc -I. -I../../../../include  -Wall -W -O3 -fomit-frame-pointer -march=i586
> -mtune=pentiumpro  -DHB_FM_STATISTICS_OFF -I../../contrib/hbwin
> -I../../../../contrib/hbwin  -c wvgdatar.c -owvgdatar.o
> ../../../../source/main/win/mingw/harbour.exe ../../wvgradio.prg -n1
> -i../../../../include -q0 -w3 -es2 -kmo -l -gc0
> gcc -I. -I../../../../include  -Wall -W -O3 -fomit-frame-pointer -march=i586
> -mtune=pentiumpro  -DHB_FM_STATISTICS_OFF -I../../contrib/hbwin
> -I../../../../contrib/hbwin  -c wvgradio.c -owvgradio.o
> ../../../../source/main/win/mingw/harbour.exe ../../wvg3stat.prg -n1
> -i../../../../include -q0 -w3 -es2 -kmo -l -gc0
> gcc -I. -I../../../../include  -Wall -W -O3 -fomit-frame-pointer -march=i586
> -mtune=pentiumpro  -DHB_FM_STATISTICS_OFF -I../../contrib/hbwin
> -I../../../../contrib/hbwin  -c wvg3stat.c -owvg3stat.o
> ../../../../source/main/win/mingw/harbour.exe ../../wvgbitmp.prg -n1
> -i../../../../include -q0 -w3 -es2 -kmo -l -gc0
> gcc -I. -I../../../../include  -Wall -W -O3 -fomit-frame-pointer -march=i586
> -mtune=pentiumpro  -DHB_FM_STATISTICS_OFF -I../../contrib/hbwin
> -I../../../../contrib/hbwin  -c wvgbitmp.c -owvgbitmp.o
> ../../../../source/main/win/mingw/harbour.exe ../../wvgsle.prg -n1
> -i../../../../include -q0 -w3 -es2 -kmo -l -gc0
> gcc -I. -I../../../../include  -Wall -W -O3 -fomit-frame-pointer -march=i586
> -mtune=pentiumpro  -DHB_FM_STATISTICS_OFF -I../../contrib/hbwin
> -I../../../../contrib/hbwin  -c wvgsle.c -owvgsle.o
> ../../../../source/main/win/mingw/harbour.exe ../../wvgmle.prg -n1
> -i../../../../include -q0 -w3 -es2 -kmo -l -gc0
> gcc -I. -I../../../../include  -Wall -W -O3 -fomit-frame-pointer -march=i586
> -mtune=pentiumpro  -DHB_FM_STATISTICS_OFF -I../../contrib/hbwin
> -I../../../../contrib/hbwin  -c wvgmle.c -owvgmle.o
> ../../../../source/main/win/mingw/harbour.exe ../../wvghtmlv.prg -n1
> -i../../../../include -q0 -w3 -es2 -kmo -l -gc0
> gcc -I. -I../../../../include  -Wall -W -O3 -fomit-frame-pointer -march=i586
> -mtune=pentiumpro  -DHB_FM_STATISTICS_OFF -I../../contrib/hbwin
> -I../../../../contrib/hbwin  -c wvghtmlv.c -owvghtmlv.o
> ../../../../source/main/win/mingw/harbour.exe ../../wvgsysw.prg -n1
> -i../../../../include -q0 -w3 -es2 -kmo -l -gc0
> gcc -I. -I../../../../include  -Wall -W -O3 -fomit-frame-pointer -march=i586
> -mtune=pentiumpro  -DHB_FM_STATISTICS_OFF -I../../contrib/hbwin
> -I../../../../contrib/hbwin  -c wvgsysw.c -owvgsysw.o
> ../../../../source/main/win/mingw/harbour.exe ../../wvgdarea.prg -n1
> -i../../../../include -q0 -w3 -es2 -kmo -l -gc0
> gcc -I. -I../../../../include  -Wall -W -O3 -fomit-frame-pointer -march=i586
> -mtune=pentiumpro  -DHB_FM_STATISTICS_OFF -I../../contrib/hbwin
> -I../../../../contrib/hbwin  -c wvgdarea.c -owvgdarea.o
> ../../../../source/main/win/mingw/harbour.exe ../../wvgscrlb.prg -n1
> -i../../../../include -q0 -w3 -es2 -kmo -l -gc0
> gcc -I. -I../../../../include  -Wall -W -O3 -fomit-frame-pointer -march=i586
> -mtune=pentiumpro  -DHB_FM_STATISTICS_OFF -I../../contrib/hbwin
> -I../../../../contrib/hbwin  -c wvgscrlb.c -owvgscrlb.o
> ../../../../source/main/win/mingw/harbour.exe ../../wvgtabpg.prg -n1
> -i../../../../include -q0 -w3 -es2 -kmo -l -gc0
> gcc -I. -I../../../../include  -Wall -W -O3 -fomit-frame-pointer -march=i586
> -mtune=pentiumpro  -DHB_FM_STATISTICS_OFF -I../../contrib/hbwin
> -I../../../../contrib/hbwin  -c wvgtabpg.c -owvgtabpg.o
> ar  cr ../../../../lib/win/mingw/libgtwvg.a gtwvg.o wvgcore.o wvgutils.o
> wvgwin.o wvgsink.o wvggui.o wincallb.o wvgcuig.o wvgclass.o wvgpaint.o
> wvgphdlr.o wvgwnd.o wvgcrt.o wvgax.o wvgdlg.o wvgmenub.o wvgtoolb.o
> wvgcombo.o wvglistb.o wvgpushb.o wvgstatb.o wvgstatc.o wvgtreev.o wincback.o
> wvgcheck.o wvgdatar.o wvgradio.o wvg3stat.o wvgbitmp.o wvgsle.o wvgmle.o
> wvghtmlv.o wvgsysw.o wvgdarea.o wvgscrlb.o wvgtabpg.o && ranlib
> ../../../../lib/win/mingw/libgtwvg.a || del /q /f
> ../../../../lib/win/mingw/libgtwvg.a
> mingw32-make[3]: Leaving directory `C:/harbour/contrib/gtwvg/win/mingw'
> mingw32-make[2]: Leaving directory `C:/harbour/contrib/gtwvg'
> _______________________________________________
> Harbour mailing list
> Harbour@harbour-project.org
> http://lists.harbour-project.org/mailman/listinfo/harbour
>



-- 
Massimo Belgrano

Analisi e sviluppo software per Lan e Web - Consulenza informatica - Formazione
Delta Informatica S.r.l. http://www.deltain.it/   +39 0321 455962
_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to