Re: Help applying print_stk patch
Yang Zhang <[email protected]> Mon, 01 Dec 2008 12:58:53 -0500
| Newsgroups | gmane.comp.lib.state-threads.user |
|---|---|
| Message-ID | <[email protected]> |
Mike Abbott wrote: >> $ CPATH=/tmp/st-1.8/LINUX_2.6.27-7-generic_DBG/ >> LIBRARY_PATH=/tmp/st-1.8/LINUX_2.6.27-7-generic_DBG/ gcc stbt.c -lst >> /tmp/ccoL3i05.o: In function `h': >> stbt.c:(.text+0x2e): undefined reference to `_st_print_thread_stacks' >> collect2: ld returned 1 exit status > > I get exactly the same error when I use the wrong path > (the wrong LINUX_whatever_DBG), but when I use the right path the gcc > command works. Then when I run > "LD_LIBRARY_PATH=/tmp/st-1.8/LINUX_whatever_DBG ./a.out" it runs fine. > > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > State-threads-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/state-threads-users Whoops. Turned out I had two libst.a's on my system, and the other one was getting in the way. -- Yang Zhang http://www.mit.edu/~y_z/ ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/