This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
cannot convert `int (*)()' to `void*' in initialization - should not be an error
- To: "'gcc-bugs at gcc dot gnu dot org'" <gcc-bugs at gcc dot gnu dot org>
- Subject: cannot convert `int (*)()' to `void*' in initialization - should not be an error
- From: "Stuehlmeyer, Wolfgang" <Wolfgang dot Stuehlmeyer at softwareag dot com>
- Date: Thu, 31 May 2001 14:29:04 +0200
Hello,
i get multiple error messages of type
"cannot convert `int (*)()' to `void*' in assignment"
and
"cannot convert `int (*)()' to `void*' in initialization"
with the gcc 3.0 Compiler. (gcc-3.0-20010517.tar.gz)
No error messages with the gcc 2.95.2 or 2.95.3.
My project has 200 MByte of c/c++ source files. 50% of
the binaries are build. I found this problem only.
Best regards
Wolfgang
-----------------------------------------------------------
Reading specs from /usr/local/lib/gcc-lib/i486-suse-linux/3.0/specs
Configured with: ./configure
--with-gcc-version-trigger=/usr/src/packages/BUILD/gcc-3.0-20010527/gcc/
version.c --host=i486-suse-linux --enable-threads=posix --enable-shared
--enable-checking --prefix=/usr/local --with-local-prefix=/usr/local
--infodir=/usr/local/share/info --mandir=/usr/local/share/man
--with-gxx-include-dir=/usr/local/include/g++ --enable-nls :
(reconfigured) ./configure
--with-gcc-version-trigger=/usr/src/packages/BUILD/gcc-3.0-20010527/gcc/
version.c --host=i486-suse-linux --enable-threads=posix --enable-shared
--enable-checking --prefix=/usr/local --with-local-prefix=/usr/local
--infodir=/usr/local/share/info --mandir=/usr/local/share/man
--with-gxx-include-dir=/usr/local/include/g++ --enable-nls :
(reconfigured) ./configure
--with-gcc-version-trigger=/usr/src/packages/BUILD/gcc-3.0-20010527/gcc/
version.c --host=i486-suse-linux --enable-threads=posix --enable-shared
--enable-checking --prefix=/usr/local --with-local-prefix=/usr/local
--infodir=/usr/local/share/info --mandir=/usr/local/share/man
--with-gxx-include-dir=/usr/local/include/g++ --enable-nls --enable-gpp
Thread model: posix
gcc version 3.0 20010526 (prerelease)
g++ -c -o obj/i686_linux_libc6_debug/cerror.o ../cerror.cxx -I.
-DSAG_COM -DCE_TLINUX86 -D_WIN32 -D_WIN32_WINNT=0x400
-DSECURITY_ENABLED=1 -DRACF_ENABLED=0 -DDBG=1 -DDBG_DETAIL=1
-DNOEXCEPTIONS -DINC_OLE2 -DFLAT -DWIN32=100 -D_NT1X_=100 -DUNICODE
-D_UNICODE -DCAIROLE_DOWNLEVEL -DDCOM -DMSWMSG -DDCOM_SECURITY
-D_NOHOOKOLE -DCOOL_COMCAT=1 -D_REENTRANT -D_POSIX_MAPPED_FILES
-D_GNU_SOURCE -Dmbtowc=OSmbtowc -Dwctomb=OSwctomb -Dwcstombs=OSwcstombs
-Dmbstowcs=OSmbstowcs -Dwcscat=OSwcscat -Dwcscpy=OSwcscpy -pipe -m486
-mcpu=i686 -fpermissive -fvtable-thunks -fno-gnu-linker -fPIC
-fexceptions -fwritable-strings -w -Wno-unused -Wno-parentheses
-Woverloaded-virtual -Wno-unknown-pragmas -Wno-comment
-Wno-non-virtual-dtor -Wno-switch -Wno-sign-compare -Wno-write-strings
-Wno-missing-braces -I/home/ole/cool.WHITE/viking/src/sag/inc/sagenv
-I/home/ole/cool.WHITE/viking/src/sag/inc -g
-I../../../common/unix -I../../../ih -I..
-I../../dcomidl/unix/obj/i686_linux_libc6_debug -I../../../common
-I../../inc -I../../moniker2 -I../../dcomrem
-I/home/ole/cool.WHITE/viking/src/ms/nt/private/dcomidl/obj/i686_linux_l
ibc6_debug -I../../dcomrem/unix
-I/home/ole/cool.WHITE/viking/src/ms/nt/public/oak/inc
-I/home/ole/cool.WHITE/viking/src/ms/nt/public/sdk/inc/obj/i686_linux_li
bc6_debug -I/home/ole/cool.WHITE/viking/src/ms/nt/public/sdk/inc &&\
ar rv obj/i686_linux_libc6_debug/libclass.a
obj/i686_linux_libc6_debug/cerror.o &&\
rm -f obj/i686_linux_libc6_debug/cerror.o
../cerror.cxx: In function `OLECHAR* LoadSysAllocString(OLECHAR*)':
../cerror.cxx:171: cannot convert `int (*)()' to `void*' in
initialization
../cerror.cxx: In function `void LoadSysFreeString(OLECHAR*)':
../cerror.cxx:205: cannot convert `int (*)()' to `void*' in
initialization
../cerror.cxx: In function `BOOL LoadSysReAllocStringLen(OLECHAR**,
OLECHAR*,
unsigned int)':
../cerror.cxx:241: cannot convert `int (*)()' to `void*' in
initialization
../cerror.cxx: In function `UINT LoadSysStringByteLen(OLECHAR*)':
../cerror.cxx:277: cannot convert `int (*)()' to `void*' in
initialization
nmake[3]: *** [obj/i686_linux_libc6_debug/libclass.a(cerror.o)] Error 1
rm -f obj/i686_linux_libc6_debug/typeinfo.o
../typeinfo.cxx: In function `HRESULT CreateVtblFromTypeInfo(const IID&,
int,
short unsigned int, MethodInfo*, TypeInfoVtbl**)':
../typeinfo.cxx:702: cannot convert `HRESULT ()(IUnknown*, const IID&,
void**)'
to `void*' in assignment
../typeinfo.cxx:703: cannot convert `ULONG ()(IUnknown*)' to `void*' in
assignment
../typeinfo.cxx:704: cannot convert `ULONG ()(IUnknown*)' to `void*' in
assignment
../typeinfo.cxx:743: cannot convert `long int ()(IRpcStubBuffer*,
IRpcChannelBuffer*, _RPC_MESSAGE*, ULONG*)' to `void*' in assignment
../typeinfo.cxx:760: cannot convert `void ()(IRpcStubBuffer*,
IRpcChannelBuffer*, _RPC_MESSAGE*, DWORD*)' to `void*' in assignment
../typeinfo.cxx: In function `long unsigned int LPSAFEARRAY_Size(long
unsigned
int*, long unsigned int, SAFEARRAY**, const IID*)':
../typeinfo.cxx:5997: cannot convert `int (*)()' to `void*' in
assignment
../typeinfo.cxx: In function `BYTE* LPSAFEARRAY_Marshal(long unsigned
int*,
BYTE*, SAFEARRAY**, const IID*)':
../typeinfo.cxx:6040: cannot convert `int (*)()' to `void*' in
assignment
../typeinfo.cxx: In function `BYTE* LPSAFEARRAY_Unmarshal(long unsigned
int*,
BYTE*, SAFEARRAY**, const IID*)':
../typeinfo.cxx:6083: cannot convert `int (*)()' to `void*' in
assignment
../typeinfo.cxx: In function `HRESULT NdrLoadOleAutomationRoutines()':
../typeinfo.cxx:6216: cannot convert `int (*)()' to `void*' in
assignment
../typeinfo.cxx:6222: cannot convert `int (*)()' to `void*' in
assignment
../typeinfo.cxx:6229: cannot convert `int (*)()' to `void*' in
assignment
../typeinfo.cxx:6236: cannot convert `int (*)()' to `void*' in
assignment
../typeinfo.cxx:6242: cannot convert `int (*)()' to `void*' in
assignment
../typeinfo.cxx:6248: cannot convert `int (*)()' to `void*' in
assignment
../typeinfo.cxx:6255: cannot convert `int (*)()' to `void*' in
assignment
../typeinfo.cxx:6262: cannot convert `int (*)()' to `void*' in
assignment
../typeinfo.cxx:6268: cannot convert `int (*)()' to `void*' in
assignment
../typeinfo.cxx:6274: cannot convert `int (*)()' to `void*' in
assignment
../typeinfo.cxx:6281: cannot convert `int (*)()' to `void*' in
assignment
../typeinfo.cxx:6288: cannot convert `int (*)()' to `void*' in
assignment
nmake[1]: *** [obj/i686_linux_libc6_debug/librpcndr20.a(typeinfo.o)]
Error 1
<<typeinfo.ii.tgz>> <<typeinfo.s.tgz>>