daryll1 0 Light Poster

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.