deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rodrigue Chakode <rodrigue.chak...@gmail.com>
Subject problem while compiling libdeltacloud for C
Date Wed, 21 Nov 2012 15:55:36 GMT
Hi,
I download libdelcloud for C/C++, but when I try to compile the examples
provided I have the following linking errors.

Do you have some ideas to fix that?

$ gcc -Wl,-rpath -Wl,/usr/local/lib -L/usr/local/lib -ldeltacloud
 -I/usr/local/include/libdeltacloud -I./tests/ tests/test_api.c
/tmp/cchStxCZ.o: In function `print_api':
test_api.c:(.text+0x6f): undefined reference to `print_link_list'
/tmp/cchStxCZ.o: In function `main':
test_api.c:(.text+0x100): undefined reference to `deltacloud_initialize'
test_api.c:(.text+0x15f): undefined reference to `deltacloud_initialize'
test_api.c:(.text+0x1c1): undefined reference to `deltacloud_initialize'
test_api.c:(.text+0x220): undefined reference to `deltacloud_initialize'
test_api.c:(.text+0x27f): undefined reference to `deltacloud_initialize'
/tmp/cchStxCZ.o:test_api.c:(.text+0x2e7): more undefined references to
`deltacloud_initialize' follow
/tmp/cchStxCZ.o: In function `main':
test_api.c:(.text+0x2f0): undefined reference to
`deltacloud_get_last_error_string'
test_api.c:(.text+0x334): undefined reference to `deltacloud_has_link'
test_api.c:(.text+0x372): undefined reference to `deltacloud_has_link'
test_api.c:(.text+0x3c7): undefined reference to `deltacloud_has_link'
test_api.c:(.text+0x404): undefined reference to `deltacloud_free'
collect2: ld a retourné 1 code d'état d'exécution

Regards,
-- 
Rodrigue Chakode

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message