in article kents-A6B0E7.21512824082003 RemoveThis @nr-tor02.bellnexxia.net, Kent
Sorensen at kents RemoveThis @snak.REMOVETHIS.com wrote on 8/24/03 6:51 PM:
> Thank you for the reply. I will look into applying the changes. However,
> I think that abandoning MSL is the better approach. Can you tell me what
> I need to do ?
1) Get rid of all the MSL access paths and replace them with system access
paths, and turn on 'Require Framework Includes'. My System Paths in Access
Paths pane then looks like
( ) {OS XVolume}usr/include
( ) {OS XVolume}usr/lib
(f) {OS XVolume}System/Library/Frameworks
(r) {Compiler}MacOS X Support
where ( ) is not recursive, (r) is recursive, and (f) is that little
frameworks script f. (Yes, this is Mach-o, I figure if you're doing a CFM
project you probably want OS 9 compatibility, and that means you're going to
use MSL, right?)
2) Lose all the MSL libraries and replace them with
usr/lib/crt1.o
MacOS X Support/Libraries/Runtime/Libs/MSL_Runtime_Mach-O_D.a
3) That's pretty much it far as I remember. Here's the debug target .pch++,
the portions relevant to stdlib usage anyway, I believe most of these
defines are irrelevant now that MSL headers are rooted out completely but
they'll probably help you during the conversion process. The various pragmas
are just there because I like them on, I don't think they have any
particular affect on the BSD v. MSL question.
#pragma precompile_target "MacSIPClientBSDDebug++"
#define TARGET_API_MAC_CARBON 1
#define DEBUG 1
// see <CarbonCore/Debugging.h>
#define kComponentSignatureString "MacSIPClient"
#define DEBUG_ASSERT_COMPONENT_NAME_STRING "MacSIPClient"
#define COMPONENT_SIGNATURE '????'
#pragma once on
#define __dest_os __mac_os_x
#define MSL_USE_PRECOMPILED_HEADERS 0
#define _MSL_USING_MW_C_HEADERS 0
#define _MSL_MACHEADERS_INCLUDES_CMATH 0
// notes about <cmath> vs <fp.h> in here -- we're not using MSL C
//#include "MacHeadersMach-O.c"
#define __NOEXTENSIONS__
#define __CF_USE_FRAMEWORK_INCLUDES__
//#include <ansi_prefix.mach.h>
#include <Carbon/Carbon.h>
#pragma check_header_flags on
#pragma warn_no_side_effect on
#pragma warn_padding on
No guarantees of correctness made for these instructions past that they
apparently produce a functioning program for me, if anybody has any
corrections to make they probably know more than I do.
--
Alex Curylo -- alex RemoveThis @alexcurylo.com -- <a style='text-decoration: underline;' href="http://www.alexcurylo.com/" target="_blank">http://www.alexcurylo.com/</a>
"As good a writer as Kevin is, he is only human. I think that for
an effective "three strikes and you're out" policy on this list,
we should let Alex deal with the third-time offenders..."
-- John Wiseman<!-- ~MESSAGE_AFTER~ -->
>> Stay informed about: PP MACH-O limits.h vs. climits - many multiple defined sym..