title: Linking libjpeg to an xCode project for iOS dev
body: <p>Good evening,</p>
  
  <p>I have been working on a C++ project from someone of my University which I had to improve for my Bachelor thesis. It basically uses the library libjpeg to do some computation resulting in a steganographic process in order to embed a message into a given image.</p>
  
  <p>Now that the C++ code works smoothly, I'd like to create a little iOS app allowing the user to encrypt whatever message he'd like into an image of his choice. So I created an xCode project following this procedure: <a href="https://www.sitepoint.com/using-c-and-c-in-an-ios-app-with-objective-c/" rel="nofollow noreferrer">using c++ in an iOS app</a></p>
  
  <p>I also found the following file: <a href="https://gist.github.com/dulaccc/25dbe620422c07e0253e" rel="nofollow noreferrer">libjpeg for iOS</a> which allowed me to compile libjpeg for iOS. Since I'm not so sure how to use the framework freshly created and couldn't find anything sufficiently convincing on the internet, I put all the files (.c and .h) of the libjpeg library into my "include" folder where I have my own .hpp. </p>
  
  <p>xCode only throws me the following error:</p>
  
  <p><a href="https://i.stack.imgur.com/pomQJ.png" rel="nofollow noreferrer">xCode error</a></p>
  
  <p>From what I could gather on several posts, I have to modify the build options of my xCode project to link manually the library, so I tried the following:</p>
  
  <p><a href="https://i.stack.imgur.com/FEdAJ.png" rel="nofollow noreferrer">Other linking flags</a></p>
  
  <p><a href="https://i.stack.imgur.com/hyhc9.png" rel="nofollow noreferrer">Library search path</a></p>
  
  <p>This wasn't enough to do the trick and I'm still struggling with the same error xCode throws at me. Any help would be very appreciated on how to proceed! </p>
  
  <p>Thanks a lot,
  Theo.</p>