Re: Still cannot get it to link - please help.
Re: Still cannot get it to link - please help.
- Subject: Re: Still cannot get it to link - please help.
- From: John Draper <email@hidden>
- Date: Wed, 10 May 2006 09:13:30 -0700
David Dunham wrote:
On 10 May 2006, at 01:05, John Draper wrote:
I then go to my Target group in the Groups and Files window.
Target --> MyApp --> Get Info --> Build pane
I notice following:
SDK Path: /Developer/SDKs
I try changing it to /Developer/SDKs/MacOSX10.3.9.sdk like in the
project info
but I get the usual undefined symbols. So I changed it back, but when
I do,
I no longer get the Undefined symbols, instead, I'm getting...
And what was the compiler of the target?
Checking on that now... Lets see... I would go to Target group in Groups
and Files window
select it, and Get Info (Is that same as inspector?). I would go to
Rules tab and in there
I get the following items... I'll include those items relevant.
C Source files using GCC 3.3 - C source files chosen
System C rule: using: GCC System Ver 4.0 - I left this as 4.0 because it
was a system wide
setting. Should I change this to Ver 3.3? I tried it and got a stern
warning, wasn't sure
about this one.
System Assembler rule using: GCC System Version 4.0 <--- What about this
one? I get
same stern warning if I try to change this. Not sure about this one also.
Going to "Build" tab... Here is what I set.
Mac OS X Deployment target: mac OS 10.3
SDK Path: /Developer/SDKs <--- If I change this to
/Developer/SDKs/MacOSX10.3.9.sdk
I get undefined symbols. I leave it this way, I don't get them. Should I
add the specific
SDK to the path?
Zero Link: Off (unchecked) <--- Cannot use it because I'm linking in
external .a files.
Link with standard Libraries: Yes
Force Package Info Generation: Yes
Compile sources as: According to file Type
C Language Dialect: Compiler default <--- Since I set it in the Rules
section and in the Project
settings, I would assume this is now the default.
Enable C++ Exceptions: yes
Enable C++ Runtime types: yes
Enable Obj C exceptions: yes
Fix and Continue: Yes <--- Not sure about this one.
Incomplete Obj C protocols: yes
Warn about Deprecated Functions: yes
GCC_OBJC_CALL_CXX_CDTORS: yes <--- Not sure about this one.
This is what I have. So, do I have the target compiler set to 3.3? Since
I'm not
sure how to set this, I included what I did in the Build settings for
the target.
Another question... Once I change these settings, do I always have to do
a complete
clean before building, or will the IDE sense this and make the
appropriate decision?
It was probably not 3.3, which is why you weren't getting undefined
symbols.
Hmmm - Should I be getting undefined symbols? so take a look above, and
check out
my settings - have I left anything out. There are so many of them.
If you post your build transcript for an attempt to link, someone
might be able to spot the problem.
I thought I did... So how would one do that? I cant find any menu item
that says
something to the effect of "display build transcript". How would I get
this information to post?
I looked in the main project finder directory, and didn't see any
transcript files it might have
left.
After building, the only transcript I get is when I click on the little
red X
in the lower right corner of the main project window, and this is what I get
after I copy and paste it into this message.
Building target “newSipTestApp” of project “newSipTestApp” — (1 error)
Checking Dependencieserror: There is no SDK at specified SDKROOT path
'/Developer/SDKs'
error: There is no SDK at specified SDKROOT path '/Developer/SDKs'
Build succeeded (1 error) <--- Now why would it lie to me and say the
Build Succeeded
when it obviously didn't?
I think from reading the docs, that the Project (top item in the groups
and files) settings
are specific to the entire project, and the Target settings are only
applicable to the specific
target chosen? Is that how it works? Does the target settings override
the project
settings, because I know some are the same.
John
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden