[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-gsl] GSL using a Makefile
From: |
Viswakula, Sameera D. |
Subject: |
Re: [Help-gsl] GSL using a Makefile |
Date: |
Fri, 11 Oct 2013 17:45:45 +0000 |
When I run just
g++ -w -O4 -I ./ -o vsd_nbPoi *.cpp
from the command line, I am getting this error
address@hidden Poisson]$ g++ -w -O4 -I ./ -o vsd_nbPoi *.cpp
/tmp/ccWSsdjU.o: In function `main':
vsd_nb.t.cpp:(.text+0x11b): undefined reference to `gsl_cdf_chisq_P'
collect2: ld returned 1 exit status
but in my vsd_nb.t.cpp (my diver file) I have included
#include <gsl/gsl_cdf.h> //for GSL
PS. gsl_cdf_chisq_P is defined in gsl_cdf.h
Thanks,
-----Original Message-----
From: Rhys Ulerich [mailto:address@hidden
Sent: Friday, October 11, 2013 1:34 PM
To: Viswakula, Sameera D.
Cc: address@hidden
Subject: Re: [Help-gsl] GSL using a Makefile
> I tried your approach but unfortunately it doesn't work.
What error messages do you get? Does 'gsl-config --cflags' work from your
command line?
> I think the problem is my C++ project uses some of the headers and
> source files which are in the saved in my working directory.
> Therefore, I am getting bunch of errors saying that namespaces are wrong and
> some member functions are not declared.
When you run just
g++ -w -O4 -I ./ -o vsd_nbPoi *.cpp
from the command line, does it fail first with a message saying some GSL header
is missing? Or does something else happen?
- Rhys
--
BEGIN-ANTISPAM-VOTING-LINKS
------------------------------------------------------
NOTE: This message was trained as non-spam. If this is wrong, please correct
the training as soon as possible.
Teach CanIt if this mail (ID 03KzRyJ4i) is spam:
Spam:
https://www.spamtrap.odu.edu/canit/b.php?i=03KzRyJ4i&m=d9fc7a593236&t=20131011&c=s
Not spam:
https://www.spamtrap.odu.edu/canit/b.php?i=03KzRyJ4i&m=d9fc7a593236&t=20131011&c=n
Forget vote:
https://www.spamtrap.odu.edu/canit/b.php?i=03KzRyJ4i&m=d9fc7a593236&t=20131011&c=f
------------------------------------------------------
END-ANTISPAM-VOTING-LINKS
- [Help-gsl] GSL using a Makefile, Viswakula, Sameera D., 2013/10/11
- Re: [Help-gsl] GSL using a Makefile, Rhys Ulerich, 2013/10/11
- Re: [Help-gsl] GSL using a Makefile, Viswakula, Sameera D., 2013/10/11
- Re: [Help-gsl] GSL using a Makefile, Rhys Ulerich, 2013/10/11
- Re: [Help-gsl] GSL using a Makefile,
Viswakula, Sameera D. <=
- Re: [Help-gsl] GSL using a Makefile, Rhys Ulerich, 2013/10/11
- Re: [Help-gsl] GSL using a Makefile, Viswakula, Sameera D., 2013/10/11
- Re: [Help-gsl] GSL using a Makefile, Rhys Ulerich, 2013/10/11
- Re: [Help-gsl] GSL using a Makefile, Viswakula, Sameera D., 2013/10/11
- Re: [Help-gsl] GSL using a Makefile, Rhys Ulerich, 2013/10/11
- Re: [Help-gsl] GSL using a Makefile, Viswakula, Sameera D., 2013/10/11
- Re: [Help-gsl] GSL using a Makefile, Rhys Ulerich, 2013/10/11
- Re: [Help-gsl] GSL using a Makefile, Viswakula, Sameera D., 2013/10/11
- Re: [Help-gsl] GSL using a Makefile, David Zaslavsky, 2013/10/12