Re: Question: link to wrong library

2018-01-22 Thread Matt Wette
I think you need -Wl,-rpath=`pwd`/libguile/.libs On 01/22/2018 03:36 AM, Chaos Eternal wrote:  gcc  -pthread -I.  -Wl,-rpath -lguile-2.2  -lgc test.c On Mon, Jan 22, 2018 at 7:30 PM 陶青云 > wrote: some result ``` ~/code/guile-2.2 $ LDFLAGS=-Wl,-

bug#15228: making open-process public [Was: Re: Using open-input-output-pipe]

2018-01-22 Thread Amirouche Boubekki
Moving the conversation to guile-devel. Can I have feedback on the patch I sent for #15228 https://debbugs.gnu.org/cgi/bugreport.cgi?bug=15228 On 2018-01-22 16:40, Edwin Watkeys wrote: Hi all, Thanks for all the input. Here a simple implementation that I've come up with; I'm not sure it's b

Re: Question: link to wrong library

2018-01-22 Thread Chaos Eternal
sorry, you missed the -L flag On Mon, Jan 22, 2018 at 8:56 PM 陶青云 wrote: > Sadly, also not work. I just want to write a C program link with libguile > that compile from source. > > > -- Original -- > *From: * "Chaos Eternal"; > *Date: * Mon, Jan 22, 2018 07:36 P

Re: Question: link to wrong library

2018-01-22 Thread Nala Ginrut
Or run it with LD_LIBRARY_PATH 2018年1月22日 19:36,"Chaos Eternal" 写道: > gcc -pthread -I. -Wl,-rpath -lguile-2.2 -lgc test.c > > On Mon, Jan 22, 2018 at 7:30 PM 陶青云 wrote: > >> some result >> >> ``` >> ~/code/guile-2.2 >> $ LDFLAGS=-Wl,-rpath LD_LIBRARY_PATH=./libguile/.libs gcc -pthread -I. >

Re: Question: link to wrong library

2018-01-22 Thread 陶青云
Sadly, also not work. I just want to write a C program link with libguile that compile from source. -- Original -- From: "Chaos Eternal"; Date: Mon, Jan 22, 2018 07:36 PM To: "陶青云"; Cc: "Nala Ginrut"; "guile-devel"; Subject: Re: Question: link to wrong l

Re: Question: link to wrong library

2018-01-22 Thread Chaos Eternal
gcc -pthread -I. -Wl,-rpath -lguile-2.2 -lgc test.c On Mon, Jan 22, 2018 at 7:30 PM 陶青云 wrote: > some result > > ``` > ~/code/guile-2.2 > $ LDFLAGS=-Wl,-rpath LD_LIBRARY_PATH=./libguile/.libs gcc -pthread -I. > -lguile-2.2 -lgc test.c > ~/code/guile-2.2 > $ ldd ./a.out > linux-vdso.so.1 (0

Re: Question: link to wrong library

2018-01-22 Thread 陶青云
some result ``` ~/code/guile-2.2 $ LDFLAGS=-Wl,-rpath LD_LIBRARY_PATH=./libguile/.libs gcc -pthread -I. -lguile-2.2 -lgc test.c ~/code/guile-2.2 $ ldd ./a.out linux-vdso.so.1 (0x7ffc441a) libguile-2.2.so.1 => /usr/lib/libguile-2.2.so.1 (0x7f3cfb519000) lib