问题
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