Copying Projects and Files - Printable Version
+- iDevGames Forums (http://www.idevgames.com/forums)
+-- Forum: Development Zone (/forum-3.html)
+--- Forum: Game Programming Fundamentals (/forum-7.html)
+--- Thread: Copying Projects and Files (/thread-949.html)
Copying Projects and Files - mikey - Jul 28, 2009 06:46 AM
Wasn't sure where to post, but here goes:
I wanted to copy my FPS, so created a new .xcodeproject. I dragged all the files necessary from the old to the new, then added frameworks, etc, etc. There's one error that bugs me though:
I added the SOIL.h and SimpleOBJLoader.h, not editng either!
I think this is the XcodeProject
Copying Projects and Files - AnotherJake - Jul 28, 2009 08:07 AM
mikey Wrote:I think this is the XcodeProject
That's just world.c, not the project.
Anyway, when you see "ld: symbol(s) not found" that almost always means you didn't include the relevant library/framework into your project. Unless the library or framework is installed in a proper location on the system like <stdlib> or similar you'll have to drag the library itself into your project so Xcode knows where it's at -- the .h file(s) are not enough; you'll need the .a file(s) as well.
When I make a copy of my projects I just hold down option and drag the project folder next to it to duplicate the whole project folder, not just the xcode project file itself.
Copying Projects and Files - Oddity007 - Jul 28, 2009 08:22 AM
In the case of SOIL, the .c files need to be included, along with the .h
(if you aren't using a .a or .dylib)
You probably knew that, but that seems to be the problem.
Copying Projects and Files - mikey - Jul 28, 2009 09:45 AM
Quote:You probably knew thatWhy thankyou, but I didn't. Slipped my mind completely. Thankyou lots.
Copying Projects and Files - AnotherJake - Jul 28, 2009 10:42 AM
Mikey is using the SOIL .a so he doesn't need the c files for it.