|
小弟现在在mdk中make时,总是出现类似下边的错误
[root@localhost myget-0.0.1]# make
cd . \
&& CONFIG_FILES= CONFIG_HEADERS=config.h \
/bin/sh ./config.status
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing default-1 commands
make all-recursive
make[1]: Entering directory `/home/saub/myget-0.0.1'
Making all in src
make[2]: Entering directory `/home/saub/myget-0.0.1/src'
source='url.cpp' object='url.o' libtool=no \
depfile='.deps/url.Po' tmpdepfile='.deps/url.TPo' \
depmode=gcc3 /bin/sh ../depcomp \
g++ -DHAVE_CONFIG_H -I. -I. -I.. -D_FILE_OFFSET_BITS=64 -g -O2 -c -o url.o `test -f url.cpp || echo './'`url.cpp
url.cpp: In member function `int URL::_parse(const char*)':
url.cpp:415: error: ISO C++ forbids cast to non-reference type used as lvalue
make[2]: *** [url.o] 错误 1
make[2]: Leaving directory `/home/saub/myget-0.0.1/src'
make[1]: *** [all-recursive] 错误 1
make[1]: Leaving directory `/home/saub/myget-0.0.1'
make: *** [all] 错误 2
[root@localhost myget-0.0.1]#
这个是装wget时候的,装其他的软件也是类似的错误,不知道是那里的问题,还请大虾指点。 |
|