954,529 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Passing GCC link flags in Xcode

Hi, I'm having a major problem with passing GCC link flags in Xcode.

I created a C program that creates and runs a neural network using the FANN library. When I compile this command line I use the command

gcc main.c -o train_test -l fann


to link the fann library into the compiler.
I am now attempting to make a GUI for this program in Objective-C. Everything seems fine apart from the fact that I cant seem to work out how to pass the fann library to the LLVM GCC 4.2 compiler, or if this is even possible.

If anyone can point me in the right direction, that'd be great.

Just in case you want to see, this is the error that the compiler is giving me:

Undefined symbols for architecture x86_64:
  "_fann_create_from_file", referenced from:
      _run_network in AppController.o
  "_fann_run", referenced from:
      _run_network in AppController.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status


Regards,
Daryll Doyle

daryll1
Light Poster
41 posts since Nov 2009
Reputation Points: 10
Solved Threads: 1
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: