Menu

#3 Compile error with gcc-3.X (Linux)

open
nobody
None
5
2003-06-16
2003-06-16
Anonymous
No

When building V under Linux, use gcc-3.3 or gcc-3.2.2 I got the
error:

g++ -c -O2 -march=i686 -mcpu=i686 -fno-strength-reduce
-I/vol/hda4/home/vgui/includex -I/usr/X11R6/include -O -DAthena
-I/vol/hda4/home/vgui/includex -I/usr/X11R6/include -O -DAthena
-o /vol/hda4/home/vgui/objx/vdebug.o vdebug.cxx
vdebug.cxx:76: error: invalid conversion from `int' to `void*'

However it compiled ok with g++-gcc-2.95.3 . With this version of
V ; use vgenx and compile the source it creates, I got the similar
error

I/usr/local/include -o mydlg.o mydlg.cpp
mydlg.cpp:31: error: invalid conversion from `int' to `void*'
so I have to to use g++-gcc-2.95.3 again. (one small thing, I
think it's very good if the makefile vgenx creates include all -lVx,
-lXaw3d or etc.. so that user dont have to add it by hand :-) )

If I apply patch to 0.90a I got another error:

In file included from /vol/hda4/home/vgui/includex/v/vapp.h:19,
from vdialog.cxx:14:
/vol/hda4/home/vgui/includex/v/vtimer.h:22: error: parse error
before numeric
constant
/vol/hda4/home/vgui/includex/v/vtimer.h:28: error: parse error
before numeric
constant
make[1]: *** [/vol/hda4/home/vgui/objx/vdialog.o] Error 1
make[1]: Leaving directory `/vol/hda4/home/vgui/srcx'

Regard,

Discussion


Log in to post a comment.

MongoDB Logo MongoDB