help-gsl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-gsl] gsl_block_alloc problem with intel 64bit (Linux)


From: Juan Pablo Amorocho D.
Subject: Re: [Help-gsl] gsl_block_alloc problem with intel 64bit (Linux)
Date: Tue, 23 Aug 2011 08:18:17 +0200

Hi Lynn,

It looks like a compiling problem. How did you do this?

cheers,

-- Juan

2011/8/23 Lynn Huh <address@hidden>

> 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
> address@hidden
> https://lists.gnu.org/mailman/**listinfo/help-gsl<https://lists.gnu.org/mailman/listinfo/help-gsl>
>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]