site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=cro3Ckrz5ZQjHC7NJ+tSCjxF5XHhjkKuvn8B2i+h05A=; b=q0lu1dNBq7mqoa75PmLnwNPlx3vI9lbX57GlHuhTtnOzzp7TvNm5O09wKkCtiOpjxj wAgns1Ezc37MH6EwW8VhI7ZSCcQo3X0wjB5X05wER5/9tYAgK2qELhmTSgIHSMU6aEO1 qNYv6lp2tf+6MT2Pg02BuxBMwJQk+ToFSRSq8= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=JNSy6P8OfkWB8c+weLoRgDOEB7QArgoxiq1+622zid+Is/nG7X72hpkPABECZxazuC qCUIvpJ+PtI8JEm/DQ5NddAEOO0Z4s+3p9k4OUvKB2OAQLcDnsiWZtc85E/QLzjjm5t7 uRIiy3QLw/N3RdnoQWCxEeOoRX16LlzNH4dyQ= I attempted to build the Objc4 v437 sources (http://opensource.apple.com/source/objc4/objc4-437/) using the included Visual Studio solution. Once I updated my environment to account for DSTROOT/SRCROOT and so forth, everything worked amazingly well. However, I get the following link error: 1>objc-typeencoding.m 1>Generating Code... 1>Compiling manifest to resources... 1>Microsoft (R) Windows (R) Resource Compiler Version 6.1.6723.1 1>Copyright (C) Microsoft Corporation. All rights reserved. 1>Linking... 1> Creating library E:\Fulgham\objc4-437\Debug\objc_debug.lib and object E:\Fulgham\objc4-437\Debug\objc_debug.exp 1>objc-runtime-old.obj : error LNK2019: unresolved external symbol _unmap_image_nolock referenced in function _unmap_image 1>objc-runtime-old.obj : error LNK2019: unresolved external symbol _map_images_nolock referenced in function _map_images 1>objc-runtime-old.obj : error LNK2019: unresolved external symbol _load_images_nolock referenced in function _load_images 1>E:\Fulgham\objc4-437\Debug\objc_debug.dll : fatal error LNK1120: 3 unresolved externals 1>Project : warning PRJ0018 : The following environment variables were not found: 1>$(SRCROOT) 1>Build log was saved at "file://e:\Fulgham\objc4-437\Debug\BuildLog.htm" 1>objc - 4 error(s), 5 warning(s) Indeed, the three missing symbols (_unmap_image_nolock, _map_image_nolock, and _load_images_nolock) are only defined for the OS X build of this library, so I understand why the error is occurring. Since they relate to DYLD load/map/unmap they are probably not needed for the Windows build at all. These symbols are used in both the objc-runtime-new.m and objc-runtime-old.m implementations: 1. map_images 2. unmap_images 3. load_images I ended up bracketing these three functions inside a "#if !TARGET_OS_WIN32/#endif", and everything then built fine. Since these functions appear to be unused on the Windows build, I assume this change is correct, however I wanted to see if this was the correct course of action, or if perhaps a Windows-specific build file might be missing in the distribution? Thanks, -Brent _______________________________________________ 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... This email sent to site_archiver@lists.apple.com
participants (1)
-
Brent Fulgham