GCC Compiles fine but Solaris Compiler doesn't?

那年仲夏 提交于 2019-12-12 03:02:54

问题


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

My platform: Fedora 17 64-bit

The following command works:

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

But when I do make, I get the error:

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]$ 

Can anyone tell what is the exact problem here?

The same source when compiled with GCC gives no error and compiles successfully.

来源:https://stackoverflow.com/questions/16088950/gcc-compiles-fine-but-solaris-compiler-doesnt

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!