Discussion:
[gphoto-devel] cannot compile /example/lunkwill-canon-capture.c
leonhongkong
2016-12-13 20:46:35 UTC
Permalink
Hi. I try to compile "libgphoto2-2.5.11/example/lunkwill-canon-capture.c"

by this command "gcc -o OUTPUTFILE lunkwill-canon-capture.c -lgphoto2"

I got error

undefined reference to symbol
'***@LIBGPHOTO02_5_0'//USR/LOCAL/LIB/LIBGPHOTO2_PORT.SO.12:error
adding symbols: DSO mission from command line collect2: error: Id returned 1
exit status

any idea what is wrong?
best regard.



--
View this message in context: http://gphoto-software.10949.n7.nabble.com/cannot-compile-example-lunkwill-canon-capture-c-tp16439.html
Sent from the gphoto-devel mailing list archive at Nabble.com.
Marcus Meissner
2016-12-17 09:36:17 UTC
Permalink
Post by leonhongkong
Hi. I try to compile "libgphoto2-2.5.11/example/lunkwill-canon-capture.c"
by this command "gcc -o OUTPUTFILE lunkwill-canon-capture.c -lgphoto2"
I got error
undefined reference to symbol
adding symbols: DSO mission from command line collect2: error: Id returned 1
exit status
Can you try building with

gcc -o OUTPUTFILE lunkwill-canon-capture.c -lgphoto2 -lgphoto2_port

Ciao, Marcus

Loading...