• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
How to use Xcode with my project
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to use Xcode with my project


  • Subject: How to use Xcode with my project
  • From: <email@hidden>
  • Date: Mon, 8 Feb 2010 23:48:02 +0100
  • Thread-topic: How to use Xcode with my project

Title: How to use Xcode with my project

I am a newbie with Xcode trying to migrate from C to C++. I am not a good programmer.
So far I have used Xcode only as an editor out of my ignorance at setting up IDEs.
Since my program is getting bigger and bigger I do need a debugger and a development environment.
I am writing a main program that calls functions beloning to a library called drl.
My program is compiled by typing the following in a terminal shell:
# g++ -Idrl -DYA_BLAS -DYA_LAPACK -DYA_BLASMULT -lblas -llapack -framework vecLib -o get_AllVar_matrix
   get_AllVar_matrix.cc
The executable is run with 3 input parameters from command line.

Actually the name "library" is confusing as it leads professional developers to think of the typical library format (.so, .ar). I do not know the reason why Dr.L authors call it "library". Actually it is a collection of C++ source files (.cpp), include files (.h), organized in C++ classes and templates and members. Dr.L documentation is available on-line at
http://www.cs.sandia.gov/~wmbrown/drl/index.htm.
After downloading and uncompressing the tar-archive, all drl functions and includes etc ... can be called from any other source program as they are. That is, without pre-compilation.
Guidelines to call drl functions from a program are provided in the on-line documentation.
For instance, the first thing to do is to add the following to the program source code which uses it:
#include "dimred/ya_dimred.h"
using namespace yala;

Basically the whole program is made up of my main "get_AllVar_matrix.cc" plus the drl ".cpp" functions I call and their respective include files. There are no .so or .ar files. Everything is to be compiled and linked at the same time.
It's like a big program made up of a number of source files and includes files.

Having said that, my question is: how can I create an Xcode project that contains my main program and also all drl
source (.cpp, .h) code, and generate one only executable that can be run from command line and accepts some input parameters ?

Thank you so much,
Maura


Alice Messenger ;-) chatti anche con gli amici di Windows Live Messenger e tutti i telefonini TIM!
Vai su http://maileservizi.alice.it/alice_messenger/index.html?pmk=footer



Alice Messenger ;-) chatti anche con gli amici di Windows Live Messenger e tutti i telefonini TIM!
Vai su http://maileservizi.alice.it/alice_messenger/index.html?pmk=footer

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: How to use Xcode with my project
      • From: Xochitl Lunde <email@hidden>
    • Re: How to use Xcode with my project
      • From: Scott Ribe <email@hidden>
  • Prev by Date: Re: make connections without InterfaceBuilder
  • Next by Date: Re: How to use Xcode with my project
  • Previous by thread: Re: can c++ tool call a cocoa framework?
  • Next by thread: Re: How to use Xcode with my project
  • Index(es):
    • Date
    • Thread