 |
 |
|
 |
03-13-2009, 06:42 AM
|
#1 (permalink)
|
|
New Member
Join Date: Feb 2009
Posts: 38
|
Help needed for solving compilation error
Hi all,
I am compiling my application for the code is like below
#import <pjsua-lib/pjsua.h>
@implementation TestPjsipAppDelegate
@synthesize window;
- (void)applicationDidFinishLaunching  UIApplication *)application
{
pjsua_acc_id acc_id;
pj_status_t status;
/* Must init PJLIB first: */
status = pj_init();
// Override point for customization after application launch
[window makeKeyAndVisible];
}
.
.
.
I am getting below error while compilation..
_Pj_init",referenced from:
Please give me some suggestion...
|
|
|
03-13-2009, 08:27 AM
|
#2 (permalink)
|
|
iPhone App Developer
Join Date: Sep 2008
Location: Berlin, Germany
Posts: 228
|
You've got the headers of pjsip, but it seems the compiler can't find the implementation (.c files).
__________________
Learn vocabularies on iPhone? iVocabulary!
|
|
|
03-13-2009, 09:12 AM
|
#3 (permalink)
|
|
New Member
Join Date: Feb 2009
Posts: 38
|
Quote:
Originally Posted by chbeer
You've got the headers of pjsip, but it seems the compiler can't find the implementation (.c files).
|
Thanks for reply,
Can you please please tell me what I have to do for that?
I have already changed Header search paths and Library Search Path to desired locations.
then also I am getting this linker error..
|
|
|
03-14-2009, 06:50 AM
|
#4 (permalink)
|
|
New Member
Join Date: Dec 2008
Posts: 28
|
actually Mr rahul i got the same error ..if u will get solution regarding this plz forward it to me
|
|
|
03-14-2009, 07:27 AM
|
#5 (permalink)
|
|
New Member
Join Date: Jan 2009
Posts: 65
|
the real error is that the compiler cannot find the symbol(s)
that means: you either need the source code for the function AND it to be in scope of the place objc is calling it
OR
you need the library file with the extern symbol declared already
|
|
|
03-16-2009, 01:35 AM
|
#6 (permalink)
|
|
New Member
Join Date: Feb 2009
Posts: 38
|
Quote:
Originally Posted by davo666
the real error is that the compiler cannot find the symbol(s)
that means: you either need the source code for the function AND it to be in scope of the place objc is calling it
OR
you need the library file with the extern symbol declared already
|
Thanks for your reply,
Yes I have library files ".a files" for this and I am also providing "Library Search Path" in Project settings for them. But then also I am getting this error.
Please suggest me some solution..
|
|
|
03-16-2009, 01:41 AM
|
#7 (permalink)
|
|
New Member
Join Date: Jan 2009
Posts: 65
|
your in heaps of luck:
i had to learn this the hard way, what architecture is the library? if it is ARM you need to change your build settings to "iPhone" instead of simulator
|
|
|
03-16-2009, 06:08 AM
|
#8 (permalink)
|
|
New Member
Join Date: Feb 2009
Posts: 38
|
Quote:
Originally Posted by davo666
your in heaps of luck:
i had to learn this the hard way, what architecture is the library? if it is ARM you need to change your build settings to "iPhone" instead of simulator
|
Below is the library i am using....
libpjsua-arm-apple-darwin9.a
I have tried it by building with iPhone Distiubution but it is still giving the same error..
|
|
|
 |
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
» Advertisements |
» Online Users: 494 |
| 58 members and 436 guests |
| AdyCoder, atsd, AXP, bensj, blackoutq3, bravetarget, cakeisalie, CHV, coconnor, cribasoft, CunningCat, danny8, davek, fede, Gamer211, gomugroup, Gudus, harrytheshark, healthyutech, henmue, iFizzgig, imsatasia, intomo, iPhoneDevelopment, Jeremy1026, johnnybluejeans, krowczyk, lepetitapps, Link, MacSteve85, markbuchanan, MarkC, MasterLee, MiniRobinho, mlo, nibby, NicolasD, Noise, not_too_shabby, P2k, pokypine, racer_X, raheel, robotcult, SimonK, talakoski, Tambourin, Type25, umarmara, vcanic, virvalid, Vivek Nirkhe, Vonswanko, wassupdoc, ZunePod |
| Most users ever online was 779, 05-11-2009 at 10:55 AM. |
» Stats |
Members: 21,505
Threads: 35,786
Posts: 156,783
Top Poster: smasher (2,449)
|
| Welcome to our newest member, SimonK |
|