Re: #include <mex.h>
Re: #include <mex.h>
- Subject: Re: #include <mex.h>
- From: Jean-Daniel Dupas <email@hidden>
- Date: Wed, 21 Jan 2009 18:27:42 +0100
Le 21 janv. 09 à 18:16, sara salha a écrit : Hello,
I am trying to link mex.h to an xcode generated C++ code. I am very confused on how to do it. I really appreciate some hints.
Trying to link an header file will give you hard time.
Seriously, to use an third party library in Xcode, you have to change the Header Search path build setting. Set the path to the folder that contains mex.h.
Then, you should also drag & drop the mex library file (either a .dylib or a .a file) in your project, and make sure it is present in you target "link build step". That should be enough.
If you need more help, I suggest you to follow the Chris monthly advice (though I'm not sure he continues to post it each month):
«The most important part of a mailing list posting is precision. We deal with computer programming here, and APIs and compilers are intolerant of imprecision. If something is not working the way you expect, try to be as complete, detailed, and precise as you can about what you did, what the result is, and how it differs from your expectation.
An email titled “Xcode Problem” saying “I tried to add a file to my project and it didn't work. What's wrong?” will not get a useful response. If you rephrase it “File added to the project doesn’t get built” and specify that you dragged a .cp file from the Finder into a project window, unchecked all the checkboxes in the sheet, and when you clicked the Build button in the toolbar, the Build Results transcript (paste the excerpt here) showed that in your target two other files were compiled but the file you added was not compiled. That's the kind of detail that will get a question answered.»
|
_______________________________________________
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