GCC编译好,但Solaris编译器没有?

时间:2013-04-18 16:56:43

标签: c++ compiler-errors solaris exiv2

来源:svn checkout svn://dev.exiv2.org/svn/trunk(rev:3019)

我的平台:Fedora 17 64位

以下命令有效:

./configure CXX=/opt/oracle/solarisstudio12.3/bin/CC \
     CC=/opt/oracle/solarisstudio12.3/bin/cc CXXFLAGS="-v -library=stlport4"

但是当我做的时候,我得到错误:

libtool: compile:  /opt/oracle/solarisstudio12.3/bin/CC -v -library=stlport4 -    
xldscope=hidden -I. -DEXV_LOCALEDIR=\"/usr/local/share/locale\" -I../include -funsigned-
char -DNDEBUG=1 -DEXV_HAVE_STDINT_H=1 -c XML_Node.cpp >/dev/null 2>&1
CC: Warning: Option -funsigned-char passed to ld, if ld is invoked, ignored otherwise
/opt/oracle/solarisstudio12.3/prod/lib/amd64/crt1x.o: In function `_start':
fsr.s:(.text+0x3b): undefined reference to `main'
make[1]: *** [XML_Node.o] Error 2
make[1]: Leaving directory `/home/Wani/GSoC/exiv2-trunk/trunk/xmpsdk/src'
make: *** [xmpsdk] Error 2
[Wani@Linux trunk]$ 

有人能说出这里的确切问题吗?

使用GCC编译时,相同的源代码不会产生错误并成功编译。

0 个答案:

没有答案