When I run just
g++ -w -O4 -I ./ -o vsd_nbPoi *.cpp
from the command line, I am getting this error
[svisw002@zorka2 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:[email protected]]
Sent: Friday, October 11, 2013 1:34 PM
To: Viswakula, Sameera D.
Cc: [email protected]
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