Re: Help applying print_stk patch

Mike Abbott <[email protected]> Mon, 1 Dec 2008 00:15:15 -0600
Newsgroups gmane.comp.lib.state-threads.user
Message-ID <[email protected]>
> $ 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=/