<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div>As Mateusz said, impossible to help without knowing your environment. I do not wish to turn this into a long email chain helping you compile against a static library as that's not what this list is for.<br>
</div>
<div><br>
</div>
<div>however, gdal is linked against link any other static library.</div>
<div><br>
</div>
<div>For example:<br>
</div>
<div><a href="https://www3.ntu.edu.sg/home/ehchua/programming/cpp/gcc_make.html#zz-1.8" target="_blank">https://www3.ntu.edu.sg/home/ehchua/programming/cpp/gcc_make.html#zz-1.8</a></div>
</div>
</div>
<div><br>
</div>
<div>For how to link against a static library and set the include path. If you really end up stuck, go take a look at StackOverflow, there are others asking similar questions there. Good luck!<br>
</div>
<div><br>
</div>
<div>Cheers</div>
<div>Chris<br>
</div>
<div><br>
</div>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Mon, Oct 28, 2019 at 12:46 AM Mateusz Loskot <<a href="mailto:mateusz@loskot.net">mateusz@loskot.net</a>> wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<div style="background-color:rgb(255,235,156);width:100%;border-style:solid;border-color:rgb(156,101,0);border-width:1pt;padding:2pt;font-size:10pt;line-height:12pt;font-family:"Calibri";color:black;text-align:left">
<span style="color:rgb(156,101,0)">CAUTION:</span> This email originated from outside of the University of Saskatchewan. Do not click links or open attachments unless you recognize the sender and know the content is safe. If in doubt, please forward suspicious
emails to <a href="mailto:phishing@usask.ca" target="_blank">phishing@usask.ca</a></div>
<br>
<div>
<div dir="auto">
<div>
<div>On Mon, 28 Oct 2019, 01:00 rachmat maulana, <<a href="mailto:maularachmat@gmail.com" target="_blank">maularachmat@gmail.com</a>> wrote:<br>
</div>
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr">Hello,
<div>I read the documentation and see there are C/C++ API for gdal,</div>
<div>How do I add gdal package to my compiler? (when I run "#include <gdal.h>" it gives me an error)</div>
</div>
</blockquote>
</div>
</div>
<div dir="auto"><br>
</div>
<div dir="auto">This is generic question how to use C++ compiler toolkit. </div>
<div dir="auto"><br>
</div>
<div dir="auto"><br>
</div>
<div dir="auto">
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr">
<div>I usually use python, but my professor ask me to use C/C++,</div>
</div>
</blockquote>
</div>
</div>
<div dir="auto"><br>
</div>
<div dir="auto">Ask your professor for help.</div>
<div dir="auto"><br>
</div>
<div dir="auto">
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr">
<div>I know only a little bit of C/C++, please help</div>
</div>
</blockquote>
</div>
</div>
<div dir="auto"><br>
</div>
<div dir="auto">
<div dir="auto" style="font-family:sans-serif">This list does not offer help about using compilers. </div>
<div dir="auto" style="font-family:sans-serif">You will need to read documentation of your compiler. </div>
</div>
<div dir="auto"></div>
<div dir="auto"><br>
</div>
<div dir="auto">-- </div>
<div dir="auto"><span style="font-family:sans-serif">Mateusz Loskot, <a href="mailto:mateusz@loskot.net" target="_blank">
mateusz@loskot.net</a></span><br style="font-family:sans-serif">
<span style="font-family:sans-serif">(Sent from mobile, may suffer from top-posting)</span><br>
</div>
<div dir="auto"><br>
</div>
<div dir="auto"></div>
</div>
</div>
</div>
_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a></blockquote>
</div>
<br clear="all">
<div>
<div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr"><br>
<span style="color:rgb(102,102,102)"></span></div>
<div dir="ltr"><br>
</div>
<div dir="ltr"><br style="color:rgb(102,102,102)">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>