[kde-solaris] Fw: qt on solaris
coralbird at yeah.net
Wed Nov 23 10:45:56 CET 2005
I make a mistake here :/opt/csw/gcc3/bin,which include gcc cc，now i delete this path and in
thanks to all :)
> I am using SunStudio compiler.
> this is my profile setting :
> export PATH
> cc=/export/home/MySunstdio11/SUNWspro/bin/cc;export cc
> CXX=/export/home/MySunstdio11/SUNWspro/bin/cc;export CXX
> export QTDIR PATH MANPATH LD_LIBRARY_PATH
> I don't set LDFlags ,CFLAGS and CXXFLAGS,In fact I don't know how to set.:(
> I konw CFLAGS and CXXFLAGS is c and c++ compile option,
> maybe this is the cause of mistake?
> my machine is x86(DELL GX280).please give a usable setting of CFLAGS and CXXFLAGS.
> w hat LDFLAGS stand for?
> too many question to all of you,and i program on windows for five years,maybe
> I still not be ready to work on unix and linux.
> > it looks like you are using gcc but are using CFLAGS/CXXFLAGS for SunStudio.
> > this won't work. :-)
> > -KPIC is a SunStudio compiler flag and it tells the compiler to generate
> > Position Independent Code.
> > the equivalent for gcc is -fPIC -DPIC
> > the 't' invalid options comes from passing -mt to gcc/g++. -mt is also a
> > SunStudio compiler flag, and it tells the compiler to use thread-safe API's
> > and interfaces. it is usually used in conjunction with -D_REENTRANT. you can
> > pass -D_REENTRANT to gcc, but gcc will not like '-mt' at all.
> > i would recommend you check your CFLAGS/CXXFLAGS/CPPFLAGS/LDFLAGS, and make
> > sure they are appropriate for gcc/g++. otherwise you will run into endless
> > grief. the compiler flags for gcc/g++ and SunStudio10 are incompatible (with
> > the exception of basic -I and -L).
> > :-)
> > --Stefan
> > --
> > Stefan Teleman 'Nobody Expects the Spanish Inquisition'
> > steleman at nyc.rr.com -Monty Python
More information about the kde-solaris