[kde-solaris] Fw: qt on solaris
lars.tunkrans at bredband.net
Wed Nov 23 19:26:21 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 :
You made a mistake here as well !
It is supposed to be:
CC in CAPITALS.
That is why configure finds /opt/csw/gcc3/bin/gcc instead of
>>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?
LDFLAGS is Link eDitor FLAGS that gives parameters to ld(1)
read the ld(1) manual
# man ld
in Solaris the default Library path is configured with crle(1)
Configuration file [version 4]: /var/ld/ld.config
Default Library Path (ELF): /lib:/usr/lib
Trusted Directories (ELF): /lib/secure:/usr/lib/secure (system
When you need to link in libraries not in you default library path
it is nessesary to tell ld(1) where these libraries are. hence:
LDFLAGS=" -L/usr/lib -L/usr/sfw/llib -L/usr/openwin/lib -L/usr/dt/lib"
(man ld )
Adds path to the library search directories. ld searches
for libraries first in any directories specified by the
-L options and then in the standard directories. This
option is useful only if the option precedes the -l
options to which the -L option applies. The environment
variable LD_LIBRARY_PATH can be used to supplement the
library search path. See LD_LIBRARY_PATH under ENVIRON-
>>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.
More information about the kde-solaris