bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

"cannot find -lCrun" error


From: Vijay Gupta
Subject: "cannot find -lCrun" error
Date: Wed, 19 Feb 2003 18:09:34 -0500

Hi,

   I've the following settings:

---------------------------------------------------------------------------
address@hidden uname 
SunOS
address@hidden uname -r
5.7
address@hidden echo $SMQROOT 
/home/nms/SonicCClient5.0/Solaris_2_6
address@hidden echo $BUILDMODE 
release
--------------------------------------------------------------------------

   I use the following script file to compile a C code

--------------------------------------------------------------------------
hosttype=`uname`

if [ "$hosttype" = "Linux" ] ; then
    archtype=LINUX
    cflags="-g -D__USE_UNIX98"
    ldflags="-lsmq -lpthread -lstdc++ -lm"
#    cc=gcc
    cc=/usr/local/bin/gcc
    var=""
elif [ "$hosttype" = "HP-UX" ] ; then
    archtype=HPUX
    cflags="-g +Z -D_RWSTD_MULTI_THREAD -D_REENTRANT -D_THREAD_SAFE
-DUSE_PTHREADS"
    ldflags="-AA -ldld -lm -lsmq -lpthread -lstd_v2 -Wl,+s"
    cc=/opt/aCC/bin/aCC
    var=""
elif [ "$hosttype" = "AIX" ] ; then
    archtype=AIX
    cflags="-g -DUNIX -DAIX -DAIX_SLOW -D_RWSTD_MULTI_THREAD -D_REENTRANT
-D_THREAD_SAFE -DUSE_PTHREADS -qrtti=all -U__STR__"
    ldflags="-brtl -lsmq"
    cc=/usr/bin/xlC_r
    var=""
else
    archtype=SOLARIS
    cflags="-mt -g -xarch=v8plusa"
    ldflags="-lsmq -lsocket -lnsl -lposix4 -lCrun -lCstd -lm"
    cc=cc
    hostrel=`uname -r`
    if [ "$hostrel" = "5.6" ] ; then
 var="-DSOLARIS_2_6"
    else
 var=""
    fi
fi

$cc $cflags -DUNIX -D$archtype $var -I$SMQROOT/include
-L$SMQROOT/bin/$BUILDMODE -L/usr/lib $ldflags -o $1 $1.c
----------------------------------------------------------------------------
----------------------------------------------------------------------------
---------

And I get the following error. Can anyone please help. I've checked to make
sure my LD_LIBRARY_PATH contains the
directories where the libCrun.so.1 and libCstd.so.1 are present.

----------------------------------------------------------------------------
----------------------------------------------------------------------------
---------

address@hidden sh mk_c.sh Chat 
cc: language arch=v8plusa not recognized
/usr/local/sparc-sun-solaris2.7/bin/ld: cannot find -lCrun
collect2: ld returned 1 exit status
----------------------------------------------------------------------------
----------------------------------------------------------------------------
---------

Thanks,
______________________________________________
Vijay Gupta
WaterCove Networks Inc.
285 Billerica Road
Chelmsford, MA 01824
direct +1 978.608-2101 fax +1 978.256-9852
http://www.watercove.com address@hidden 






reply via email to

[Prev in Thread] Current Thread [Next in Thread]