P.S. You'd probably be better of to use a simple Makefile with Geany build commands, then you could compile your object files separately and link them into the final executable.<br><br><div>Can i find somewhere an example of this approach?<div>
<br></div><div>Thx!<br><br><br><div class="gmail_quote">On Fri, Aug 2, 2013 at 11:17 PM, Matthew Brush <span dir="ltr"><<a href="mailto:mbrush@codebrainz.ca" target="_blank">mbrush@codebrainz.ca</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On 13-08-02 02:03 PM, Gert Leenders wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
My mistake... i just forgot to mention it :)<br>
<br></div>
*quick_start_example2.c:18:29: fatal error: utils/nfc-utils.h: No such file<br>
or directory*<br>
*<br>
*<br>
As you probably expected...<br>
<br>
</blockquote>
<br>
It seems like your include `-I/home/glnd/libnfc-1.7.0-<u></u>rc7` is not taking effect. Maybe move the option to before the source file option (%f). Also make sure there's a "utils/nfc-utils.h" file inside the directory you are passing to -I option (obviously).<br>

<br>
P.S. You'd probably be better of to use a simple Makefile with Geany build commands, then you could compile your object files separately and link them into the final executable.<br>
<br>
Cheers,<br>
Matthew Brush<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
<br>
On Fri, Aug 2, 2013 at 10:58 PM, Matthew Brush <<a href="mailto:mbrush@codebrainz.ca" target="_blank">mbrush@codebrainz.ca</a>> wrote:<br>
<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
On 13-08-02 09:25 AM, Gert Leenders wrote:<br>
<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
Hi,<br>
<br>
I'm struggling to get the build command properly set...<br>
<br>
I'm trying to compile the libnfc libraries via Geany.<br>
<br>
The file contains this info:<br>
<br>
// This is same example as quick_start_example1.c but using<br>
// some helper functions existing in libnfc.<br>
// Those functions are not available yet in a library<br>
// so binary object must be linked statically:<br>
// $ gcc -o quick_start_example2 -lnfc -I../.. quick_start_example2.c<br>
../../utils/nfc-utils.o<br>
<br>
In a terminal everything works fine (although i had to move the -lnfc<br>
command to the end)<br>
<br>
# gcc -o quick_start_example2 -I../.. quick_start_example2.c<br>
../../utils/nfc-utils.o -lnf<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Works fine.<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
</blockquote>
<br>
</blockquote>
I tried different things in geany like:<br>
gcc -Wall -o "%e" "%f" -I/home/glnd/libnfc-1.7.0-rc7<br></div>
/home/glnd/libnfc-1.7.0-rc7/**<u></u>utils/nfc-utils.o -lnfc<br>
But without any success...<br>
<br>
<br>
</blockquote><div class="im">
Is there no errors or anything?<br>
<br>
Cheers,<br>
Matthew Brush<br>
<br></div>
______________________________<u></u>**_________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.geany.org" target="_blank">Users@lists.geany.org</a><br>
<a href="https://lists.geany.org/cgi-**bin/mailman/listinfo/users" target="_blank">https://lists.geany.org/cgi-**<u></u>bin/mailman/listinfo/users</a><<a href="https://lists.geany.org/cgi-bin/mailman/listinfo/users" target="_blank">htt<u></u>ps://lists.geany.org/cgi-bin/<u></u>mailman/listinfo/users</a>><br>

<br>
</blockquote><div class="im">
<br>
<br>
<br>
<br>
<br>
______________________________<u></u>_________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.geany.org" target="_blank">Users@lists.geany.org</a><br>
<a href="https://lists.geany.org/cgi-bin/mailman/listinfo/users" target="_blank">https://lists.geany.org/cgi-<u></u>bin/mailman/listinfo/users</a><br>
<br>
</div></blockquote><div class="HOEnZb"><div class="h5">
<br>
______________________________<u></u>_________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.geany.org" target="_blank">Users@lists.geany.org</a><br>
<a href="https://lists.geany.org/cgi-bin/mailman/listinfo/users" target="_blank">https://lists.geany.org/cgi-<u></u>bin/mailman/listinfo/users</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Met vriendelijk groeten,<div>Gert Leenders</div>
</div></div>