Hi Lynn, It looks like a compiling problem. How did you do this?
cheers, -- Juan 2011/8/23 Lynn Huh <aerospacel...@gmail.com> > Hello, > > I tried to build the following code, but it returns error like this: > (intel 64bit machine, Fedora 15, Code::Blocks. > The GSL I installed was from rpm.pbone.net for Fedora 15 with > x86_64 architecture.) > > ||=== Block01, Debug ===| > obj/Debug/Function.o||In function `main':| > /home/Astrokitten/C++/Block01/**Function.cpp|8|undefined reference to > `gsl_block_alloc'| > /home/Astrokitten/C++/Block01/**Function.cpp|11|undefined reference to > `gsl_block_free'| > ||=== Build finished: 2 errors, 0 warnings ===| > > Code: > > #include <iostream> > #include <iomanip> > #include <gsl/gsl_block.h> > using namespace std; > int main() > { > gsl_block *b=gsl_block_alloc(100); > cout<<"Length of block: "<<b->size<<endl; > cout<<"Address of block: "<<hex<<b->data<<endl; > gsl_block_free(b); > return 0; > } > > The same code ran fine in 32bit machine with Windows XP, > Code::Blocks. > > Am I doing something wrong? > > Thank you in advance for your help. > > ______________________________**_________________ > Help-gsl mailing list > Help-gsl@gnu.org > https://lists.gnu.org/mailman/**listinfo/help-gsl<https://lists.gnu.org/mailman/listinfo/help-gsl> > _______________________________________________ Help-gsl mailing list Help-gsl@gnu.org https://lists.gnu.org/mailman/listinfo/help-gsl