[prev in list] [next in list] [prev in thread] [next in thread] 

List:       hpux-cxx-dev
Subject:    RE: CXX-DEV: HPUX-DEVTOOLS: How can I use relative path to link archieve library ?
From:       "Yoon, Gil Gu" <gilgu.yoon () hp ! com>
Date:       2007-05-30 14:19:59
Message-ID: 0A6DB0670334A14386DE46EF46B7F32502959FD7 () KOREXC03 ! asiapacific ! cpqcorp ! net
[Download RAW message or body]

Hi

I'll follow Veygel, Mario's advice below because it works.
-L/tmp -l:woo.a

Thanks all
Yoon, Gilgu



-----Original Message-----
From: owner-cxx-dev@cxx.cup.hp.com [mailto:owner-cxx-dev@cxx.cup.hp.com]
On Behalf Of Yoon, Gil Gu
Sent: Wednesday, May 30, 2007 6:54 PM
To: cxx-dev@cxx.cup.hp.com
Cc: Yoon, Gil Gu
Subject: CXX-DEV: HPUX-DEVTOOLS: How can I use relative path to link
archieve library ?
Importance: High

Hi all


Does anyone know how to link archive by using relative path when I
compile c program ?
Below is my environment.

# uname -a
HP-UX ignite B.11.23 U ia64 3771668384 unlimited-user license

# cc -V
cc: HP aC++/ANSI C B3910B A.06.05 [Jul 25 2005]
 
 
# ls -l /tmp/woo.a
-rw-rw-rw-   1 root       sys           3494 May 30 18:01 /tmp/woo.a


# cat woomain.c
main(){

        woo1();                     /* woo1() is in /tmp/woo.a */
 
}
 
# pwd
/tmp/ygg
 
# cc -o woomain woomain.c /tmp/woo.a 
  ===========> Here I used absolute path (/tmp/woo.a).  It's OK.
 
 
My question is below.  ( I must use relative path of archive library.)

# cc -o woomain woomain.c -L/tmp -lwoo
ld: Can't find library or mismatched ABI for -lwoo
Fatal error.

 
Best Regards 
Yoon, Gil-Gu
 

# [ list software deleted text/html attachment, 3.2 kb ]

# [ 1 attachments dropped, 3.2 kb.]

# [ Please do not post attachments to mailing lists.        ]
# [ They can generate an immense amount of network traffic  ]
# [ as they are propagated to many hundreds of recipients.  ]

 _________________________________________________________________
 To leave this mailing list, send mail to majordomo@cxx.cup.hp.com
    with the message UNSUBSCRIBE cxx-dev
 _________________________________________________________________

 _________________________________________________________________
 To leave this mailing list, send mail to majordomo@cxx.cup.hp.com
    with the message UNSUBSCRIBE cxx-dev
 _________________________________________________________________
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic