title: Error: could not find native static library `ssl`, perhaps an -L flag is missing? on WIndows
body: <p>I'm trying to build this project on windows. -&gt; <a href="https://github.com/alexanderbanks/rust-api" rel="nofollow noreferrer">https://github.com/alexanderbanks/rust-api</a></p>
  <p><a href="https://users.rust-lang.org/t/error-could-not-find-native-static-library-ssl-perhaps-an-l-flag-is-missing-on-windows/46777" rel="nofollow noreferrer">https://users.rust-lang.org/t/error-could-not-find-native-static-library-ssl-perhaps-an-l-flag-is-missing-on-windows/46777</a>
  When I run cargo build I get following error. Please note I have updated the dependencies to</p>
  <pre><code>[dependencies]
  iron = &quot;0.6.1&quot;
  router = &quot;0.6.0&quot;
  time = &quot;0.2.16&quot;
  serde = &quot;1.0.114&quot;
  serde_derive = &quot;1.0.114&quot;
  serde_json = &quot;1.0.57&quot;
  diesel = { version = &quot;1.4.5&quot;, features = [&quot;postgres&quot;] }
  diesel_codegen = { version = &quot;0.16.1&quot;, features = [&quot;postgres&quot;] }
  dotenv = &quot;0.15.0&quot;
  bcrypt = &quot;0.8.1&quot;
  rand = &quot;0.7.3&quot;
  bodyparser = &quot;0.8.0&quot;
  frank_jwt = &quot;3.1.2&quot;
  </code></pre>
  <p>Windows PATH
  <a href="https://i.stack.imgur.com/wqkTA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wqkTA.png" alt="enter image description here" /></a></p>
  <p><strong>ERROR</strong>:</p>
  <pre><code>error: could not find native static library `ssl`, perhaps an -L flag is missing?
  
  error: aborting due to previous error
  
  error: could not compile `openssl-sys`.
  </code></pre>