site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=simple/simple; d=pogma.com; s=pogmail; t=1302378402; bh=o6Cf4F0tagHIs5+uE0mw9AggJm/gYUt/IOR9/Wf8NU4=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=wp1FuLUz0CXvZ2X0c7xHism3MWd0AJ0DtIZK3f/SpEGUqaiKVgyKWKFNfLnYc8sim UeU7Te2Nowbw1h3P9vl01XCkLikn/D7naZTiX+9lgJi0Hx7h7VSPk5xlg1byLkFeFd apRmDNIw1ir4B9QM3pFOcR2CVNin8ftTjfvVVYi8= User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.15) Gecko/20110307 Fedora/3.1.9-0.39.b3pre.fc14 Thunderbird/3.1.9 What are you really trying to do? Shantonu I speculate that the problem is, that in i386 the symbol starts with a "." instead of an underscore and that the possibly naive dlsym code gets confused by this. So, yeah, what Shantonu said. Peter _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... On 04/09/2011 10:04 AM, Shantonu Sen wrote: On Apr 9, 2011, at 4:01 AM, Nat! wrote: dlsym looks up C symbols, all of which have a leading underscore, the man page explains this: The symbol name passed to dlsym() is the name used in C source code. For example to find the address of function foo(), you would pass "foo" as the symbol name. This is unlike the older dyld APIs which required a leading underscore. If you looking up a C++ symbol, you need to use the mangled C++ symbol name. This email sent to site_archiver@lists.apple.com
participants (1)
-
Peter O'Gorman