GLBasic forum

Codesnippets => Code Snippets => Topic started by: aroldo on 2012-Jan-18

Title: iOS Compilation Error - Help Please
Post by: aroldo on 2012-Jan-18
Back in August 2011 DaCarSoft did a wrapper to call iOS  native keyboard in this post http://www.glbasic.com/forum/index.php?topic=6706.0 (http://www.glbasic.com/forum/index.php?topic=6706.0)

I am learning Xcode for iOS so be patient with me.

I am trying to compile and run his code on my iPhone, here are the steps I did:


If I try to compile in XCode I get the following errors:

Undefined symbols for architecture armv7:
  "_iOSMessageBox", referenced from:
      __ZN11__GLBASIC__14__MainGameSub_Ev in libPROGRAM.a(gpc_temp0.o)
  "_GetiOSMessageBoxValues", referenced from:
      __ZN11__GLBASIC__14__MainGameSub_Ev in libPROGRAM.a(gpc_temp0.o)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Help Please!!!
Title: Re: iOS Compilation Error - Help Please
Post by: trucidare on 2012-Jan-18
you have to add the .mm file manually to the project copied from your pc everytime you update the .xcodeproj folder
Title: Re: iOS Compilation Error - Help Please
Post by: matchy on 2012-Apr-25
How do you mean by adding the .mm manually because I can get this to work now, unlike before.
Title: Re: iOS Compilation Error - Help Please
Post by: matchy on 2012-Apr-27
BUMP. Anyone compiled any xcode for GLB lately as I haven't since xcode 3.

The issue is quite urgent.  :'( :'( :'(
Title: Re: iOS Compilation Error - Help Please
Post by: Kitty Hello on 2012-May-08
Yes. You must drag/drop the .mm files into the xcode project's "source" files.
Title: Re: iOS Compilation Error - Help Please
Post by: matchy on 2012-May-08
As I was able to get a sample going initially I decided to start from scratch and I was able to get it going.  :good: I suppose importing, copying and pasting that was giving me some issues.  :-[