Re: link problem on inline function basic_istream::seekg
Re: link problem on inline function basic_istream::seekg
- Subject: Re: link problem on inline function basic_istream::seekg
- From: Victor Liu <email@hidden>
- Date: Wed, 14 Apr 2004 09:57:33 +0800
thanks you for you help.
I success to build with my project, it need to set 'Header search path'
with two directory "/usr/include/gcc/darwin/3.3/c++" and
"/usr/include/gcc/darwin/3.3/c++/ppc-darwin", and also specific the SDK
for 10.2.8 and Target OS for 10.2. I do some exam for a conclusion :
while SDK version be assign, all library and header path (include C++
lib) will be redirect to start with SDK's path, for example above path
"/usr/include/gcc/darwin/3.3/c++" will be replace with
'/Developer/SDKs/MacOSX10.2.8.sdk/usr/include/gcc/darwin/3.3/c++". so
when you to add a new library or framework, you need to specific with a
absolutely path, do not need to specific SDK one, the xcode will help
you to do redirect.
I also put a shell script in Build Phase, that script only have one
line '/usr/bin/env', that will dump all environment parameter in xcode
while build finish.
On 2004/4/13, at $W$H 9:56, Victor Liu wrote:
----- Original Message -----
From: "Philip Aker" <email@hidden>
To: "Victor Liu" <email@hidden>
Sent: Tuesday, April 13, 2004 2:35 AM
Subject: Re: link problem on inline function basic_istream::seekg
On Monday, Apr 12, 2004, at 01:28 US/Pacific, Victor Liu wrote:
yes, my code can compile with PB and run at 10.2 very well at before,
but I upgrade my system to 10.3 and use new tool xcode to build this
project for now and it cause some problem.
But I could not compile the line:
std::ifstream is( m_strFilename.c_str() );
with PB/10.2.8. Instead I had to use:
std::ifstream is( m_strFilename.c_str(), std::ios_base::in );
Then it was very smooth. But indeed I don't know why I had to put in
the mode.
I do not how to solve this problem on new tool Xcode 1.1 upgrade, I
got some information in this list so I set target to OS 10.2 and SDK
to 10.2.7 in Xcode, but it still can not pass Link stage.
one thing seems funny, in order to make sure the include path is
direct to '/Developter/SDKs/MacOSX10.2.7/usr/include' not system one,
I change the system path from '/usr/include/gcc' to '.../gcc-', to
make sure xcode can not use system path, the funny thing happen,
xcode
can not find correct c++ header file ! why ? I already set the SDK
settings to MacOSX 10.2.7 SDK in project settings, it shall use
'/Developer/SDKs/....' not system one ! that is so strange.
I'm using Project Builder on 10.2 for code that must work in Jaguar
and
newer and so avoid those issues entirely. However I have seen some
problems with include paths discussed on the xcode-users list so the
solution is probably in the archives. However I cannot remember the
subject line(s). George Warner made a post about using '/usr/bin/env'
in a shell script phase and one can gather a lot of information from
the result. There may be some other flag settings you can search for
including:
MACOSX_DEPLOYMENT_TARGET
NEXT_ROOT
LDFLAGS
HEADER_SEARCH_PATHS
USE_HEADERMAP=NO
-I <dir>
-nostdinc
-nostdinc++
Philip Aker
http://www.aker.ca
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.