iOS Compilation Error - Help Please

Previous topic - Next topic

aroldo

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

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:


  • I created a GLBasic project called MSG and copied the GLBasic code from DaCar example.
  • created a file called msg.mm and copied the .mm  file.
  • In GLBasic I compiled for the iPhone and copyed the msg.mm file under the XCode folder generated by the GLBasic.
  • I opened the iPhone.xcodeproj in XCode but I can't see the msg.mm.

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!!!
[a http://apd-games.com/][img http://apd-games.com/images/APDGames135.png][/a]
MacBook Pro OS X El Capitan
XCode Version 7
iPhone 6 running  iOS 9
iPad Mini running  iOS 7.1
Galaxy S5
Dell Latitude Windows 8 Enterprise
Palm Pre, Palm Pre2

trucidare

you have to add the .mm file manually to the project copied from your pc everytime you update the .xcodeproj folder
MacBook Pro 2,2 GHz Core 2 Duo, 4 GB RAM, 160 GB HDD, 8600M GT
Core i3 - 3,07 GHz, 8 GB Ram, 2.5 TB HDD, Geforce GTX 260+ OC

matchy

How do you mean by adding the .mm manually because I can get this to work now, unlike before.

matchy

#3
BUMP. Anyone compiled any xcode for GLB lately as I haven't since xcode 3.

The issue is quite urgent.  :'( :'( :'(

Kitty Hello

Yes. You must drag/drop the .mm files into the xcode project's "source" files.

matchy

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.  :-[