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.
On 13-08-02 02:03 PM, Gert Leenders wrote:
My mistake... i just forgot to mention it :)*quick_start_example2.c:18:29: fatal error: utils/nfc-utils.h: No such file
or directory*
*
*
As you probably expected...
It seems like your include `-I/home/glnd/libnfc-1.7.0-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).
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.
Cheers,
Matthew Brush
On 13-08-02 09:25 AM, Gert Leenders wrote:
Hi,/home/glnd/libnfc-1.7.0-rc7/**utils/nfc-utils.o -lnfc
I'm struggling to get the build command properly set...
I'm trying to compile the libnfc libraries via Geany.
The file contains this info:
// This is same example as quick_start_example1.c but using
// some helper functions existing in libnfc.
// Those functions are not available yet in a library
// so binary object must be linked statically:
// $ gcc -o quick_start_example2 -lnfc -I../.. quick_start_example2.c
../../utils/nfc-utils.o
In a terminal everything works fine (although i had to move the -lnfc
command to the end)
# gcc -o quick_start_example2 -I../.. quick_start_example2.c
../../utils/nfc-utils.o -lnf
Works fine.I tried different things in geany like:
gcc -Wall -o "%e" "%f" -I/home/glnd/libnfc-1.7.0-rc7
But without any success...
Is there no errors or anything?______________________________**_________________
Cheers,
Matthew Brush
Users mailing list
Users@lists.geany.org
https://lists.geany.org/cgi-**bin/mailman/listinfo/users<https://lists.geany.org/cgi-bin/mailman/listinfo/users>
_______________________________________________
Users mailing list
Users@lists.geany.org
https://lists.geany.org/cgi-bin/mailman/listinfo/users
_______________________________________________
Users mailing list
Users@lists.geany.org
https://lists.geany.org/cgi-bin/mailman/listinfo/users