title: How can I compile a C console program using Cairo library (that compiles ok on Ubuntu) on Windows 11?
body: <p>I made a console C program that reads a .obj 3d model and unflatten it into a multipage PDF. At first I used a little PDF library (<a href="https://github.com/AndreRenaud/PDFGen" rel="nofollow noreferrer">https://github.com/AndreRenaud/PDFGen</a>) that worked fine and I was able to compile my code on Windows 11, but I needed to have text rotated and it wasn't possible with PDFGen, so I changed for Cairo Library (<a href="https://github.com/freedesktop/cairo" rel="nofollow noreferrer">https://github.com/freedesktop/cairo</a>). With Cairo my code does exactly what I want, but I didn't find how to compile it on Windows.</p>
  <p>I'm using Geany to edit/compile my C code, my build command is :</p>
  <pre><code>gcc -Wall -o &quot;%e&quot; &quot;%f&quot;  -lcairo -lm 
  </code></pre>
  <p>I tried to do the same on Geany on Windows and it didn't work.
  I found a repository with standalone cairo DLL for Windows, but didn't manage to use it.
  I'm looking for another PDF library that could be used both on Linux and Windows, but for the moment didn't find any.</p>
  <p>my code is here (<a href="https://github.com/gilboonet/Deplieur-C/blob/main/deplieur.c" rel="nofollow noreferrer">https://github.com/gilboonet/Deplieur-C/blob/main/deplieur.c</a>)</p>
  <p>It's my first post here, I'm a long time C programmer but not IT pro and I'm not a Windows user, I only want to compile my code on it because lots of people that will use my program are windows users. Thank you.</p>