Dave, wow, that did the trick for me. Thanks!

-
Hai

On Fri, Jun 23, 2017 at 12:44 PM, Dave Watson <[email protected]> wrote:

> On 06/23/17 11:00 AM, hai huang wrote:
> > Just saw that I should post these types of questions to the mailing list
> > and cc David. If anyone can help, I'd really appreciate it. Thanks!
> >
> > -
> > Hai
> >
> > ---------- Forwarded message ----------
> > From: hai huang <[email protected]>
> > Date: Fri, Jun 23, 2017 at 10:36 AM
> > Subject: question about compiling test-ptrace.c
> > To: [email protected]
> >
> >
> > Hi David,
> >
> > I'm trying out libunwind in the context of a ptrace'd process. After
> > downloading, compiling, and installing the libunwind library from git, I
> > tried to compile tests/test-ptrace.c using the following command:
> >
> > cd tests
> > gcc -I../include -lunwind-ptrace -lunwind-generic -lunwind -o test-ptrace
> > test-ptrace.c
>
> IIRC the linker ordering is position-sensitive, this command works for me.
>
> gcc -I../include test-ptrace.c -lunwind-ptrace -lunwind-x86_64 -lunwind -o
> test-ptrace
>
_______________________________________________
Libunwind-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/libunwind-devel

Reply via email to