[pacman-dev] alpm linking

Stefano Esposito stefano.esposito87 at gmail.com
Mon Sep 3 06:12:05 EDT 2007


Hi all,

just trying to compile a trivial c++ program which uses alpm. In the linking phase i get those errors:

alpmm.o: In function `alpm_str_list_to_vector(__alpm_list_t*)':
alpmm.cc:(.text+0x1b2): undefined reference to `alpm_list_first(__alpm_list_t*)'
alpmm.cc:(.text+0x1d0): undefined reference to `alpm_list_getdata(__alpm_list_t const*)'
alpmm.cc:(.text+0x24b): undefined reference to `alpm_list_next(__alpm_list_t*)'
alpmm.o: In function `Alpmm::set_databases()':
alpmm.cc:(.text+0x5c2): undefined reference to `alpm_list_getdata(__alpm_list_t const*)'
alpmm.cc:(.text+0x6fc): undefined reference to `alpm_list_next(__alpm_list_t*)'
alpmm.o: In function `Alpmm::get_options()':
alpmm.cc:(.text+0x788): undefined reference to `alpm_option_get_logfile'
alpmm.cc:(.text+0x79f): undefined reference to `alpm_option_get_usesyslog'
alpmm.cc:(.text+0x7be): undefined reference to `alpm_option_get_noupgrades'
alpmm.cc:(.text+0x7f5): undefined reference to `alpm_option_get_noextracts'
alpmm.cc:(.text+0x84d): undefined reference to `alpm_option_get_ignorepkgs'
alpmm.cc:(.text+0x8a5): undefined reference to `alpm_option_get_holdpkgs'
alpmm.cc:(.text+0x8fd): undefined reference to `alpm_option_get_needles'
database.o: In function `~Database':
/home/ragnarok/workspace/gtkpacman/branches/c++/src/database.cc:26: undefined reference to `alpm_db_unregister'
/home/ragnarok/workspace/gtkpacman/branches/c++/src/database.cc:26: undefined reference to `alpm_db_unregister'
database.o: In function `Database::get_packages()':
/home/ragnarok/workspace/gtkpacman/branches/c++/src/database.cc:45: undefined reference to `alpm_list_next(__alpm_list_t*)'
/home/ragnarok/workspace/gtkpacman/branches/c++/src/database.cc:47: undefined reference to `alpm_list_getdata(__alpm_list_t const*)'

I'm just missing something on alpm linking? I've added only -lalpm to my compiler line

--
Stefano Esposito
-- 
Stefano Esposito <stefano.esposito87 at gmail.com>




More information about the pacman-dev mailing list