Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 03-13-2009, 06:42 AM   #1 (permalink)
New Member
 
Join Date: Feb 2009
Posts: 38
Default 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)applicationDidFinishLaunchingUIApplication *)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...
rahulvaishnav is offline   Reply With Quote
Old 03-13-2009, 08:27 AM   #2 (permalink)
iPhone App Developer
 
chbeer's Avatar
 
Join Date: Sep 2008
Location: Berlin, Germany
Posts: 229
Default

You've got the headers of pjsip, but it seems the compiler can't find the implementation (.c files).
__________________
Learn vocabularies on iPhone? iVocabulary!
chbeer is offline   Reply With Quote
Old 03-13-2009, 09:12 AM   #3 (permalink)
New Member
 
Join Date: Feb 2009
Posts: 38
Default

Quote:
Originally Posted by chbeer View Post
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..
rahulvaishnav is offline   Reply With Quote
Old 03-14-2009, 06:50 AM   #4 (permalink)
New Member
 
Join Date: Dec 2008
Posts: 28
Default

actually Mr rahul i got the same error ..if u will get solution regarding this plz forward it to me
nandan is offline   Reply With Quote
Old 03-14-2009, 07:27 AM   #5 (permalink)
New Member
 
Join Date: Jan 2009
Posts: 65
Default

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
davo666 is offline   Reply With Quote
Old 03-16-2009, 01:35 AM   #6 (permalink)
New Member
 
Join Date: Feb 2009
Posts: 38
Default

Quote:
Originally Posted by davo666 View Post
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..
rahulvaishnav is offline   Reply With Quote
Old 03-16-2009, 01:41 AM   #7 (permalink)
New Member
 
Join Date: Jan 2009
Posts: 65
Default

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
davo666 is offline   Reply With Quote
Old 03-16-2009, 06:08 AM   #8 (permalink)
New Member
 
Join Date: Feb 2009
Posts: 38
Default

Quote:
Originally Posted by davo666 View Post
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..

rahulvaishnav is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Stats
Members: 158,476
Threads: 89,091
Posts: 380,123
Top Poster: BrianSlick (7,091)
Welcome to our newest member, JordanCahill
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 04:08 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0