Re: Symbol(s) not found error for _vm_region, migrating to Xcode 3.2
Re: Symbol(s) not found error for _vm_region, migrating to Xcode 3.2
- Subject: Re: Symbol(s) not found error for _vm_region, migrating to Xcode 3.2
- From: Ben Haller <email@hidden>
- Date: Sun, 11 Oct 2009 13:07:52 -0400
Hi! I'm moving an old project forward to Xcode 3.2 and building it
for x86_64. I'm getting a mysterious link error:
"_vm_region", referenced from:
_SSCanWriteToAddress in SSCocoaExtra.o
Symbol(s) not found
I'm building against the 10.6 SDK with a min version of 10.6.
The .m file imports <mach/mach.h>. This all used to build just
fine on 10.5 (sorry, don't know what version of Xcode and what SDK
exactly).
Can you comment on where SSCocoaExtra comes from?
It's just my own code. The relevant snippet:
#import <mach/mach.h>
BOOL SSCanWriteToAddress(void *address)
{
vm_map_t task = mach_task_self();
vm_address_t inOutAddress = (vm_address_t)address;
vm_size_t outSize = 0;
struct vm_region_basic_info info;
kern_return_t err;
mach_port_t objectName = MACH_PORT_NULL;
mach_msg_type_number_t count = VM_REGION_BASIC_INFO_COUNT;
err = vm_region( task, &inOutAddress, &outSize, VM_REGION_BASIC_INFO,
(vm_region_info_t)&info, &count, &objectName );
...
Ben Haller
Stick Software
_______________________________________________
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