Using Max code in XCode

Miscellaneous Forums/MacOS X Discussion/Using Max code in XCode

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Bear in mind that your ctest module is importing three other BRL modules, none of which you have added to your Xcode project. The functions you are calling in Test() are all external references, which the linker won't be able to resolve - likewise if they in turn reference anything else in other modules. It's probably easier in the long run to add the whole lot of them to your project - or perhaps even better, to combine them into a single framework.

You don't need a script for your .a files because they're already compiled. You only need to define a build rule if you add .bmx sources, so that Xcode will know how to compile them. The .a files are archive files, which are simply libraries of individual object files. See the Unix binutils doc for the "ar" utility.

The exported symbol for your function won't be "Test". It'll be something like "_angeldaniel_ctest_Test". However, you can rename it with a prototype in your ObjC source code or header.