Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Fri Jul 21, 2017 1:36 am
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Undefined symbols for architecture i386
PostPosted: Sun Dec 23, 2012 5:26 am 
Offline

Joined: Fri Nov 17, 2006 5:20 am
Posts: 3
Location: Germany
Hi,

i become always the error "Undefined symbols for architecture i386" if i want compile
my Plugin with the Tinkerforge bindings.

i dont fint the error can some help me war are my error?

Picture of the Error: http://www.flymymail.com/TinkerforgePlugin.PNG
XCode Project: http://www.flymymail.com/TinkerforgePlugin.zip

thanks for help!
Oliver


Top
 Profile  
Reply with quote  
 Post subject: Re: Undefined symbols for architecture i386
PostPosted: Thu Jan 03, 2013 5:01 am 
Offline

Joined: Wed Sep 12, 2012 2:17 am
Posts: 6
You're trying to link C code from C++, and it doesn't work because of name mangling (google for it).
In the header files inside the "Tinkerforge bindings 1.0.24" group in your Xcode project, add the following in the top of the file:

#ifdef __cplusplus
extern "C" {
#endif


And the following in the bottom of the file:

#ifdef __cplusplus
}
#endif


Do this for every header file in the "Tinkerforge bindings 1.0.24" group of the project.

_________________
RealBasic beginner
I'm not a native english speaker, sorry for my grammar.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group