title: C++ Windows Command Prompt C1083 "Cannot open include file: 'Magick++.h' No such file or directory"
body: <p>It has been over 4 hours since I made any progress at all, and searched documentation and links and frankly I'm out of ideas. So here goes.</p>
  
  <p><strong>Background</strong></p>
  
  <ul>
  <li>I am compiling a C++ program in command prompt</li>
  <li>I am new to command prompt and fairly new to c++</li>
  <li>I am writing this program in Notepad++ (not VS) but have VS installed so I can compile</li>
  <li>I am trying to utilize ImageMagick through Magick++, a C++ API wrapper for it.</li>
  <li>Main program directory
  <ul>
  <li>C:/Program Files (x86)/CameraSoftware/myCameraProgram.cpp</li>
  </ul></li>
  <li>Magick++ directory
  <ul>
  <li>C:/Program Files (x86)/ImageSoftware/Magick++/lib/Magick.h</li>
  </ul></li>
  </ul>
  
  <p><strong>Issues</strong></p>
  
  <ul>
  <li>I am trying to use the Magick++ API and so I want to include it</li>
  <li>I am just using this in the .cpp file <code>#include &lt;Magick++.h&gt;</code></li>
  <li>I've messed around with numerous solutions that has worked for others but to no avail
  <ul>
  <li>fatal error C1083: Cannot open include file: 'Magick++.h': No such file or directory</li>
  </ul></li>
  </ul>
  
  <p><strong>Problem</strong></p>
  
  <ul>
  <li>How do I correctly compile and link to 'Magick++.h' correctly through command prompt?</li>
  <li>Currently it is compiled as such
  <ul>
  <li>cl myCameraProgram.cpp /EHsc /link DSLRRemoteLib.lib</li>
  <li>DSLRRemoteLib is a lib file located in the same directory and /EHsc and /link is required for it to function</li>
  </ul></li>
  </ul>
  
  <p><strong>Other solutions</strong></p>
  
  <ul>
  <li>For visual studio projects, I believe you can add external directory paths to the project with some play around with the configurations, but I do not have that luxury using notepad++, so I really need to know how to compile this properly</li>
  <li>I have tried hard coding in myCameraProgram.cpp #include "COMPLETE_DIR_PATH/Magick++.h" and it will compile, but Magick++.h has more includes within it(eg <code>#include &lt;Magick++/Include.h&gt;</code>), and it will bring up C1083 error for each of the header files.
  <ul>
  <li>I've also tried hard coding the filepaths within Magick++.h and same problems with the next level of header files. So this not a solution.</li>
  <li>I've also tried to tack on an additional argument to the /link the file in the compile line</li>
  <li><code>cl myCameraProgram.cpp /EHsc /link DSLRRemote "COMPLETE_DIR_PATH/Magick++.h"</code> but doesnt work</li>
  <li>Also tried  <code>cl myCameraProgram.cpp /EHsc /link DSLRRemote /l "COMPLETE_DIR_PATH/Magick++.h"</code></li>
  <li>Along with multiple failed attempts.</li>
  </ul></li>
  </ul>
  
  <p>Any help or advice or direction will be vastly appreciated, thanks!</p>
  
  <p>======== EDIT ========</p>
  
  <p><strong>Thanks for the tips everyone.</strong> </p>
  
  <ul>
  <li>Using /I "C:\Users\ME\Documents\ImageMagick-6.8.1-10\Magick++\lib" I could link the #include "Magick++.h" successfully, but it doesn't look anywhere else for other files.</li>
  <li>It cant find #include  which is in a subdirectory path "C:\Users\ME\Documents\ImageMagick-6.8.1-10\Magick++\lib\Magic++\Include.h".</li>
  <li>"Magick++/Include.h" also makes a reference to another subdirectory in the parent directory.</li>
  </ul>
  
  <p><strong>Progress</strong></p>
  
  <ul>
  <li>My current command prompt compile line is:</li>
  <li>cl "C:\Users\ME\Documents\ImageMagick-6.8.1-10\Magick++\lib"</li>
  <li>Finds "Magick++.h"</li>
  </ul>
  
  <p><strong>Issue</strong></p>
  
  <ul>
  <li>"Magick++.h" is a header file that includes 4 headers</li>
  <li>Upon compiling, it cannot find the other files which is in a subdirectory</li>
  <li>Is there a way to link ALL subdirectories and files under the path</li>
  <li>"C:\Users\ME\Documents\ImageMagick-6.8.1-10" in a compile by any chance?</li>
  </ul>