Closed GoogleCodeExporter closed 9 years ago
I cannot reproduce the problem.
What is the error message you get?
What operating system do you use?
Original comment by ludovic....@gmail.com
on 23 Jan 2013 at 5:37
I'm using ubuntu 12.04 and gcc 4.6.3 and that's the error I get:
gcc -o quick_start_example1 -lnfc quick_start_example1.c
/tmp/ccli4628.o: In function `main':
quick_start_example1.c:(.text+0x8c): undefined reference to `nfc_init'
quick_start_example1.c:(.text+0x91): undefined reference to `nfc_version'
quick_start_example1.c:(.text+0xd2): undefined reference to `nfc_open'
quick_start_example1.c:(.text+0x110): undefined reference to
`nfc_initiator_init'
quick_start_example1.c:(.text+0x128): undefined reference to `nfc_perror'
quick_start_example1.c:(.text+0x141): undefined reference to
`nfc_device_get_name'
quick_start_example1.c:(.text+0x183): undefined reference to
`nfc_initiator_select_passive_target'
quick_start_example1.c:(.text+0x277): undefined reference to `nfc_close'
quick_start_example1.c:(.text+0x286): undefined reference to `nfc_exit'
collect2: ld returned 1 exit status
As I said if I compile with this command everything works:
gcc -o quick_start_example1 quick_start_example1.c -lnfc
Here you find a thread where there are people experiencing a problem like my
one. Don't consider the last post, that's mine and I don't know if it solved
the problem of the others as well:
http://www.libnfc.org/community/topic/751/unable-to-compile/
Original comment by lark...@gmail.com
on 23 Jan 2013 at 7:05
I tried to search the web for differences between gcc 4.6 and 4.4 and I found
this thread:
http://askubuntu.com/questions/202166/differences-in-compiling-between-gcc-4-4-a
nd-gcc-4-6
It seems that there are differences in gcc 4.6 and gcc 4.4. I didn't find
anything official confirming this thesis.
Original comment by lark...@gmail.com
on 23 Jan 2013 at 9:33
Fixed in 109d4962227f
Original comment by ludovic....@gmail.com
on 25 Jan 2013 at 1:22
This issue was closed by revision cd2b03a08a4f.
Original comment by romu...@libnfc.org
on 29 Jan 2013 at 11:11
Sorry, wrong commit log: this issue was closed in 109d4962227f.
Original comment by romu...@libnfc.org
on 29 Jan 2013 at 11:13
Original issue reported on code.google.com by
lark...@gmail.com
on 23 Jan 2013 at 2:17