{"id":185,"date":"2010-01-08T16:55:49","date_gmt":"2010-01-09T00:55:49","guid":{"rendered":"http:\/\/hongyu.org\/wordpress\/?p=185"},"modified":"2010-01-20T12:36:18","modified_gmt":"2010-01-20T20:36:18","slug":"different-parameter-order-for-gcc-on-cygwin-and-linux","status":"publish","type":"post","link":"https:\/\/www.hongyu.org\/wordpress\/?p=185","title":{"rendered":"Different parameter order for GCC on Cygwin and Linux"},"content":{"rendered":"<p>For a test program, test.c, that used library libjpeg, both<br \/>\n    gcc test.c -ljpeg -o test<br \/>\nand<br \/>\n    gcc -ljpeg test.c -o test<br \/>\nworked on Linux (CentOS 5), but only the former worked on Cygwin. Odd.<\/p>\n<p>\nAnother difference is the <a href=\"http:\/\/www.zlib.net\">ZLIB<\/a> library. In linux, I compiled using -lz, while on cygwin, I use -llibz<\/p>\n","protected":false},"excerpt":{"rendered":"<p>For a test program, test.c, that used library libjpeg, both gcc test.c -ljpeg -o test and gcc -ljpeg test.c -o test worked on Linux (CentOS 5), but only the former worked on Cygwin. Odd. Another difference is the ZLIB library. In linux, I compiled using -lz, while on cygwin, I use -llibz<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[2],"tags":[],"_links":{"self":[{"href":"https:\/\/www.hongyu.org\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/185"}],"collection":[{"href":"https:\/\/www.hongyu.org\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hongyu.org\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hongyu.org\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hongyu.org\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=185"}],"version-history":[{"count":3,"href":"https:\/\/www.hongyu.org\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/185\/revisions"}],"predecessor-version":[{"id":189,"href":"https:\/\/www.hongyu.org\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/185\/revisions\/189"}],"wp:attachment":[{"href":"https:\/\/www.hongyu.org\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=185"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hongyu.org\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=185"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hongyu.org\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=185"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}