[Top][All Lists]

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

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

From: Lynn Huh
Subject: [Help-gsl] gsl_block_alloc problem with intel 64bit (Linux)
Date: Tue, 23 Aug 2011 01:16:17 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:5.0) Gecko/20110707 Thunderbird/5.0


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 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 ===|


#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;
    return 0;

The same code ran fine in 32bit machine with Windows XP,

Am I doing something wrong?

Thank you in advance for your help.

reply via email to

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