* problem in linking the lib
2002-12-31 9:55 problem in linking the lib Chang Chew Wai
@ 2002-05-14 3:28 ` Chang Chew Wai
2002-12-31 9:55 ` Achim Gaedke
1 sibling, 0 replies; 8+ messages in thread
From: Chang Chew Wai @ 2002-05-14 3:28 UTC (permalink / raw)
To: gsl-discuss
Dear sir, i think i need some help with gsl. i installed the rpm for
gsl-1.1.1-0. and was unable to link it to the lib.
i tried to compile with the following command.
gcc -L/usr/lib-lgsl test.c
the error messages are
/tmp/ccrOm9yz.o: In function `main':
/tmp/ccrOm9yz.o(.text+0x24): undefined reference to `gsl_stats_mean'
/tmp/ccrOm9yz.o(.text+0x3f): undefined reference to `gsl_stats_variance'
/tmp/ccrOm9yz.o(.text+0x5a): undefined reference to `gsl_stats_max'
/tmp/ccrOm9yz.o(.text+0x75): undefined reference to `gsl_stats_min'
thanx
waiting for the reply
chew wai
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: problem in linking the lib
2002-12-31 9:55 ` Achim Gaedke
@ 2002-05-14 3:39 ` Achim Gaedke
2002-12-31 9:55 ` Jacek Pliszka
2002-12-31 9:55 ` Slaven Peles
2 siblings, 0 replies; 8+ messages in thread
From: Achim Gaedke @ 2002-05-14 3:39 UTC (permalink / raw)
To: crsccw; +Cc: gsl-discuss
Hmm... Maybe it is a typo: the gcc command must be:
gcc -L/usr/lib -lgsl test.c
Please note the space between the option -L/usr/lib (extends the library
searchpath) and the option -lgsl (command to link against gsl library).
Achim
Chang Chew Wai schrieb:
>
> Dear sir, i think i need some help with gsl. i installed the rpm for
> gsl-1.1.1-0. and was unable to link it to the lib.
>
> i tried to compile with the following command.
> gcc -L/usr/lib-lgsl test.c
>
> the error messages are
> /tmp/ccrOm9yz.o: In function `main':
> /tmp/ccrOm9yz.o(.text+0x24): undefined reference to `gsl_stats_mean'
> /tmp/ccrOm9yz.o(.text+0x3f): undefined reference to `gsl_stats_variance'
> /tmp/ccrOm9yz.o(.text+0x5a): undefined reference to `gsl_stats_max'
> /tmp/ccrOm9yz.o(.text+0x75): undefined reference to `gsl_stats_min'
>
> thanx
> waiting for the reply
> chew wai
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: problem in linking the lib
2002-12-31 9:55 ` Jacek Pliszka
@ 2002-05-14 6:15 ` Jacek Pliszka
0 siblings, 0 replies; 8+ messages in thread
From: Jacek Pliszka @ 2002-05-14 6:15 UTC (permalink / raw)
To: Achim Gaedke; +Cc: crsccw, gsl-discuss
On Tue, 14 May 2002, Achim Gaedke wrote:
> Hmm... Maybe it is a typo: the gcc command must be:
>
> gcc -L/usr/lib -lgsl test.c
Why not:
gcc test.c `gsl-config --libs`
BR,
Jacek
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: problem in linking the lib
2002-12-31 9:55 ` Slaven Peles
@ 2002-05-15 12:24 ` Slaven Peles
0 siblings, 0 replies; 8+ messages in thread
From: Slaven Peles @ 2002-05-15 12:24 UTC (permalink / raw)
To: crsccw; +Cc: gsl-discuss
To make things even simpler, you don't have to specify your library path,
since compiler will look in /usr/lib anyway. In your case it is enough to
write
gcc tst.c -lgsl
or depending on what do you want to compile you might have to use
gcc tst.c -lgsl -lgslcblas -lm
Slaven
On Tuesday 14 May 2002 06:17 am, Achim Gaedke wrote:
> Hmm... Maybe it is a typo: the gcc command must be:
>
> gcc -L/usr/lib -lgsl test.c
>
> Please note the space between the option -L/usr/lib (extends the library
> searchpath) and the option -lgsl (command to link against gsl library).
>
> Achim
>
> Chang Chew Wai schrieb:
> > Dear sir, i think i need some help with gsl. i installed the rpm for
> > gsl-1.1.1-0. and was unable to link it to the lib.
> >
> > i tried to compile with the following command.
> > gcc -L/usr/lib-lgsl test.c
> >
> > the error messages are
> > /tmp/ccrOm9yz.o: In function `main':
> > /tmp/ccrOm9yz.o(.text+0x24): undefined reference to `gsl_stats_mean'
> > /tmp/ccrOm9yz.o(.text+0x3f): undefined reference to `gsl_stats_variance'
> > /tmp/ccrOm9yz.o(.text+0x5a): undefined reference to `gsl_stats_max'
> > /tmp/ccrOm9yz.o(.text+0x75): undefined reference to `gsl_stats_min'
> >
> > thanx
> > waiting for the reply
> > chew wai
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: problem in linking the lib
2002-12-31 9:55 ` Achim Gaedke
2002-05-14 3:39 ` Achim Gaedke
2002-12-31 9:55 ` Jacek Pliszka
@ 2002-12-31 9:55 ` Slaven Peles
2002-05-15 12:24 ` Slaven Peles
2 siblings, 1 reply; 8+ messages in thread
From: Slaven Peles @ 2002-12-31 9:55 UTC (permalink / raw)
To: crsccw; +Cc: gsl-discuss
To make things even simpler, you don't have to specify your library path,
since compiler will look in /usr/lib anyway. In your case it is enough to
write
gcc tst.c -lgsl
or depending on what do you want to compile you might have to use
gcc tst.c -lgsl -lgslcblas -lm
Slaven
On Tuesday 14 May 2002 06:17 am, Achim Gaedke wrote:
> Hmm... Maybe it is a typo: the gcc command must be:
>
> gcc -L/usr/lib -lgsl test.c
>
> Please note the space between the option -L/usr/lib (extends the library
> searchpath) and the option -lgsl (command to link against gsl library).
>
> Achim
>
> Chang Chew Wai schrieb:
> > Dear sir, i think i need some help with gsl. i installed the rpm for
> > gsl-1.1.1-0. and was unable to link it to the lib.
> >
> > i tried to compile with the following command.
> > gcc -L/usr/lib-lgsl test.c
> >
> > the error messages are
> > /tmp/ccrOm9yz.o: In function `main':
> > /tmp/ccrOm9yz.o(.text+0x24): undefined reference to `gsl_stats_mean'
> > /tmp/ccrOm9yz.o(.text+0x3f): undefined reference to `gsl_stats_variance'
> > /tmp/ccrOm9yz.o(.text+0x5a): undefined reference to `gsl_stats_max'
> > /tmp/ccrOm9yz.o(.text+0x75): undefined reference to `gsl_stats_min'
> >
> > thanx
> > waiting for the reply
> > chew wai
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: problem in linking the lib
2002-12-31 9:55 ` Achim Gaedke
2002-05-14 3:39 ` Achim Gaedke
@ 2002-12-31 9:55 ` Jacek Pliszka
2002-05-14 6:15 ` Jacek Pliszka
2002-12-31 9:55 ` Slaven Peles
2 siblings, 1 reply; 8+ messages in thread
From: Jacek Pliszka @ 2002-12-31 9:55 UTC (permalink / raw)
To: Achim Gaedke; +Cc: crsccw, gsl-discuss
On Tue, 14 May 2002, Achim Gaedke wrote:
> Hmm... Maybe it is a typo: the gcc command must be:
>
> gcc -L/usr/lib -lgsl test.c
Why not:
gcc test.c `gsl-config --libs`
BR,
Jacek
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: problem in linking the lib
2002-12-31 9:55 problem in linking the lib Chang Chew Wai
2002-05-14 3:28 ` Chang Chew Wai
@ 2002-12-31 9:55 ` Achim Gaedke
2002-05-14 3:39 ` Achim Gaedke
` (2 more replies)
1 sibling, 3 replies; 8+ messages in thread
From: Achim Gaedke @ 2002-12-31 9:55 UTC (permalink / raw)
To: crsccw; +Cc: gsl-discuss
Hmm... Maybe it is a typo: the gcc command must be:
gcc -L/usr/lib -lgsl test.c
Please note the space between the option -L/usr/lib (extends the library
searchpath) and the option -lgsl (command to link against gsl library).
Achim
Chang Chew Wai schrieb:
>
> Dear sir, i think i need some help with gsl. i installed the rpm for
> gsl-1.1.1-0. and was unable to link it to the lib.
>
> i tried to compile with the following command.
> gcc -L/usr/lib-lgsl test.c
>
> the error messages are
> /tmp/ccrOm9yz.o: In function `main':
> /tmp/ccrOm9yz.o(.text+0x24): undefined reference to `gsl_stats_mean'
> /tmp/ccrOm9yz.o(.text+0x3f): undefined reference to `gsl_stats_variance'
> /tmp/ccrOm9yz.o(.text+0x5a): undefined reference to `gsl_stats_max'
> /tmp/ccrOm9yz.o(.text+0x75): undefined reference to `gsl_stats_min'
>
> thanx
> waiting for the reply
> chew wai
^ permalink raw reply [flat|nested] 8+ messages in thread
* problem in linking the lib
@ 2002-12-31 9:55 Chang Chew Wai
2002-05-14 3:28 ` Chang Chew Wai
2002-12-31 9:55 ` Achim Gaedke
0 siblings, 2 replies; 8+ messages in thread
From: Chang Chew Wai @ 2002-12-31 9:55 UTC (permalink / raw)
To: gsl-discuss
Dear sir, i think i need some help with gsl. i installed the rpm for
gsl-1.1.1-0. and was unable to link it to the lib.
i tried to compile with the following command.
gcc -L/usr/lib-lgsl test.c
the error messages are
/tmp/ccrOm9yz.o: In function `main':
/tmp/ccrOm9yz.o(.text+0x24): undefined reference to `gsl_stats_mean'
/tmp/ccrOm9yz.o(.text+0x3f): undefined reference to `gsl_stats_variance'
/tmp/ccrOm9yz.o(.text+0x5a): undefined reference to `gsl_stats_max'
/tmp/ccrOm9yz.o(.text+0x75): undefined reference to `gsl_stats_min'
thanx
waiting for the reply
chew wai
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2002-05-14 13:15 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-12-31 9:55 problem in linking the lib Chang Chew Wai
2002-05-14 3:28 ` Chang Chew Wai
2002-12-31 9:55 ` Achim Gaedke
2002-05-14 3:39 ` Achim Gaedke
2002-12-31 9:55 ` Jacek Pliszka
2002-05-14 6:15 ` Jacek Pliszka
2002-12-31 9:55 ` Slaven Peles
2002-05-15 12:24 ` Slaven Peles
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).