Discussion:
problem with compiling files
perfectblue
2007-03-20 17:04:35 UTC
Permalink
Hello,

I'm a graduate student and now working on my master thesis in a company. I'm planning to build a neural network with FANN on Linux. Since I cannot install anything on the company computer myself, I asked the IT people in the company to intall the library for me.

When I tried to compile the file I got this kind of error:
/tmp/ccQT1448.o(.text+0x19): In function `main':
: undefined reference to `fann_create_from_file'
/tmp/ccQT1448.o(.text+0x3c): In function `main':
: undefined reference to `fann_run'
/tmp/ccQT1448.o(.text+0x7d): In function `main':
: undefined reference to `fann_destroy'
collect2: ld returned 1 exit status

I took the second example from the tutorial (the Simple Execution Example) so I think there should be no mistake in the code. And it's the same with all other examples when I tried to compile them.

I guess there might be something wrong when installing the FANN library, but the IT peoplehaven't figure it out (not yet).

Do anyone has any idea what could be wrong?

Thank you,

Jene



§ïÅÜšC€@€Ñ ±qXuite¶}©l
http://www.xuite.net
Josh Menke
2007-03-20 17:09:34 UTC
Permalink
Are you #including "fann.h" ?

--Josh
Post by perfectblue
Hello,
I'm a graduate student and now working on my master thesis in a company.
I'm planning to build a neural network with FANN on Linux. Since I cannot
install anything on the company computer myself, I asked the IT people in
the company to intall the library for me.
: undefined reference to `fann_create_from_file'
: undefined reference to `fann_run'
: undefined reference to `fann_destroy'
collect2: ld returned 1 exit status
I took the second example from the tutorial (the Simple Execution Example)
so I think there should be no mistake in the code. And it's the same with
all other examples when I tried to compile them.
I guess there might be something wrong when installing the FANN library,
but the IT peoplehaven't figure it out (not yet).
Do anyone has any idea what could be wrong?
Thank you,
Jene
------------------------------
http://www.xuite.net
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Fann-general mailing list
https://lists.sourceforge.net/lists/listinfo/fann-general
--
Joshua Menke, Ph.D.
Machine Learning Scientist
Trust and Safety Applied Research
ebay, Inc
***@cs.byu.edu
Steffen Nissen
2007-03-20 17:13:40 UTC
Permalink
Seems like you are not linking correctly with the library, how does your
compile command line look like?

does it include -l fann?
Post by Josh Menke
Are you #including "fann.h" ?
--Josh
Post by perfectblue
Hello,
I'm a graduate student and now working on my master thesis in a company.
I'm planning to build a neural network with FANN on Linux. Since I cannot
install anything on the company computer myself, I asked the IT people in
the company to intall the library for me.
: undefined reference to `fann_create_from_file'
: undefined reference to `fann_run'
: undefined reference to `fann_destroy'
collect2: ld returned 1 exit status
I took the second example from the tutorial (the Simple Execution
Example) so I think there should be no mistake in the code. And it's the
same with all other examples when I tried to compile them.
I guess there might be something wrong when installing the FANN library,
but the IT peoplehaven't figure it out (not yet).
Do anyone has any idea what could be wrong?
Thank you,
Jene
------------------------------
http://www.xuite.net
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Fann-general mailing list
https://lists.sourceforge.net/lists/listinfo/fann-general
--
Joshua Menke, Ph.D.
Machine Learning Scientist
Trust and Safety Applied Research
ebay, Inc
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Fann-general mailing list
https://lists.sourceforge.net/lists/listinfo/fann-general
--
Steffen Nissen - http://MySpace.com/SteffenNissen
Project Administrator - Fast Artificial Neural Network Library (fann)
http://fann.sf.net
Seth Price
2007-03-20 17:11:37 UTC
Permalink
What are the exact commands are you using to compile the file? You
should be linking to libfann. For example, if you are using GCC, you
would make sure you pass the flag "-lfann".
~Seth
Post by perfectblue
Hello,
I'm a graduate student and now working on my master thesis in a
company. I'm planning to build a neural network with FANN on Linux.
Since I cannot install anything on the company computer myself, I
asked the IT people in the company to intall the library for me.
: undefined reference to `fann_create_from_file'
: undefined reference to `fann_run'
: undefined reference to `fann_destroy'
collect2: ld returned 1 exit status
I took the second example from the tutorial (the Simple Execution
Example) so I think there should be no mistake in the code. And
it's the same with all other examples when I tried to compile them.
I guess there might be something wrong when installing the FANN
library, but the IT peoplehaven't figure it out (not yet).
Do anyone has any idea what could be wrong?
Thank you,
Jene
改變每䞀倩 埞Xuite開始
http://www.xuite.net
----------------------------------------------------------------------
---
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to
share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?
page=join.php&p=sourceforge&CID=DEVDEV________________________________
_______________
Fann-general mailing list
https://lists.sourceforge.net/lists/listinfo/fann-general
Continue reading on narkive:
Loading...