{"id":138,"date":"2007-10-30T13:12:14","date_gmt":"2007-10-30T17:12:14","guid":{"rendered":"http:\/\/mattfife.net\/wordpress\/?p=138"},"modified":"2013-07-03T00:37:25","modified_gmt":"2013-07-03T07:37:25","slug":"138","status":"publish","type":"post","link":"https:\/\/mattfife.com\/?p=138","title":{"rendered":"libPNG\/zLib compile error fix"},"content":{"rendered":"<p>Annoying little gotchas whos solutions are hard to find. Here&#8217;s one I&#8217;m making a note of on my site so I don&#8217;t have to look it up later:<\/p>\n<p>Compiling libPNG requires compiling zLib as well. On Microsoft Visual Studio, you&#8217;ll get errors about invalid instruction operands:<br \/>\n<em>inffas32.asm(647) : error A2070: invalid instruction operands<br \/>\ninffas32.asm(649) : error A2070: invalid instruction operands<br \/>\ninffas32.asm(663) : error A2070: invalid instruction operands<br \/>\ninffas32.asm(720) : error A2070: invalid instruction operands<\/em><\/p>\n<p>All due to the same assembly language problem. Fix them using the dword ptr command to clear up the reference:<br \/>\n&#8211; movd mm7,[esi]<br \/>\n+ movd mm7,dword ptr[esi]<\/p>\n<p><a href=\"http:\/\/dave-programming.blogspot.com\/feeds\/posts\/default\" target=\"_blank\">Link<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Annoying little gotchas whos solutions are hard to find. Here&#8217;s one I&#8217;m making a note of on my site so I don&#8217;t have to look it up later: Compiling libPNG requires compiling zLib as well. On Microsoft Visual Studio, you&#8217;ll get errors about invalid instruction operands: inffas32.asm(647) : error A2070: invalid instruction operands inffas32.asm(649) : error A2070: invalid instruction operands inffas32.asm(663) : error A2070: invalid instruction operands inffas32.asm(720) : error A2070: invalid instruction operands All due to the same assembly&#8230;<\/p>\n<p class=\"read-more\"><a class=\"btn btn-default\" href=\"https:\/\/mattfife.com\/?p=138\"> Read More<span class=\"screen-reader-text\">  Read More<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[6,5],"tags":[],"class_list":["post-138","post","type-post","status-publish","format-standard","hentry","category-technicalproblemsolutions","category-technical"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/s4WECr-138","jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/mattfife.com\/index.php?rest_route=\/wp\/v2\/posts\/138","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mattfife.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mattfife.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mattfife.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mattfife.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=138"}],"version-history":[{"count":1,"href":"https:\/\/mattfife.com\/index.php?rest_route=\/wp\/v2\/posts\/138\/revisions"}],"predecessor-version":[{"id":1198,"href":"https:\/\/mattfife.com\/index.php?rest_route=\/wp\/v2\/posts\/138\/revisions\/1198"}],"wp:attachment":[{"href":"https:\/\/mattfife.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=138"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mattfife.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=138"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mattfife.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=138"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}