{"id":927,"date":"2019-02-20T16:50:05","date_gmt":"2019-02-20T16:50:05","guid":{"rendered":"https:\/\/ibex.tech\/embedded\/?p=927"},"modified":"2022-02-18T15:37:48","modified_gmt":"2022-02-18T15:37:48","slug":"plib-h-no-such-file-or-directory","status":"publish","type":"post","link":"https:\/\/ibex.tech\/embedded\/microchip\/pic32\/xc32-v2-old\/issues-xc32\/plib-h-no-such-file-or-directory","title":{"rendered":"plib.h: No such file or directory"},"content":{"rendered":"\n<h5 class=\"wp-block-heading\">Compiler message<\/h5>\n\n\n\n<p>&#8220;fatal error: plib.h: No such file or directory&#8221;<\/p>\n\n\n\n<h5 class=\"wp-block-heading\">Cause<\/h5>\n\n\n\n<p>plib.h is no longer shipped with latest version XC32 compiler as of June 2017 (from V1.40). The peripherals &#8220;includes&#8221; are also no longer shipped.<\/p>\n\n\n\n<h5 class=\"wp-block-heading\">Remedy<\/h5>\n\n\n\n<p>Go to: <a href=\"https:\/\/www.microchip.com\/mplab\/compilers\">https:\/\/www.microchip.com\/mplab\/compilers<\/a><\/p>\n\n\n\n<p>Downloads tab &gt; Current Peripheral Libraries<\/p>\n\n\n\n<p>The Peripheral libraries requires the install of another software package.<\/p>\n\n\n\n<h5 class=\"wp-block-heading\">For new projects<\/h5>\n\n\n\n<p>MPLAB Harmony &#8211; you should install for new projects as this is the new recommended way.  Read the readme file &#8211; there is a step you have to do in MPLABX after install!<\/p>\n\n\n\n<h5 class=\"wp-block-heading\">For old projects<\/h5>\n\n\n\n<p>Install &#8220;PIC32 Legacy Peripheral Libraries &#8211; Windows&#8221; from that page instead. During install when asked for the install directory change it to the one for your installed XC32 compiler (the &#8220;\\v#.##&#8221; bit)<\/p>\n\n\n\n<p>Now when you compile you will get this: &#8220;warning: #warning The PLIB functions and macros in this file will be removed from the MPLAB XC32 C\/C++ Compiler in future releases&#8221;<br><\/p>\n\n\n\n<p>To suppress this warning add this before your &lt;include &#8220;plib.h&gt;:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#define _SUPPRESS_PLIB_WARNING\n#include &lt;plib.h><\/code><\/pre>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Compiler message &#8220;fatal error: plib.h: No such file or directory&#8221; Cause plib.h is no longer shipped with latest version XC32 compiler as of June 2017 (from V1.40). The peripherals &#8220;includes&#8221; are also no longer shipped. Remedy Go to: https:\/\/www.microchip.com\/mplab\/compilers Downloads tab &gt; Current Peripheral Libraries The Peripheral libraries requires the install of another software package. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[78],"tags":[],"class_list":["post-927","post","type-post","status-publish","format-standard","hentry","category-issues-xc32"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/embedded\/wp-json\/wp\/v2\/posts\/927","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibex.tech\/embedded\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ibex.tech\/embedded\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ibex.tech\/embedded\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ibex.tech\/embedded\/wp-json\/wp\/v2\/comments?post=927"}],"version-history":[{"count":9,"href":"https:\/\/ibex.tech\/embedded\/wp-json\/wp\/v2\/posts\/927\/revisions"}],"predecessor-version":[{"id":943,"href":"https:\/\/ibex.tech\/embedded\/wp-json\/wp\/v2\/posts\/927\/revisions\/943"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/embedded\/wp-json\/wp\/v2\/media?parent=927"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/embedded\/wp-json\/wp\/v2\/categories?post=927"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/embedded\/wp-json\/wp\/v2\/tags?post=927"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}