Boost logo

Boost Users :

Subject: Re: [Boost-users] Static link boost library using arm compiler
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2010-02-26 18:01:39


AMDG

Carlos wrote:
> I already found the problem for this one, I need to pass the library folder
> in the ./configure
>
> But now I have other problem:
>
> arm-none-linux-gnueabi-g++ -Wall -Wextra -O0 -ggdb -pipe
> /usr/local/boost_1_42_0/lib/libboost_system.a
> /usr/local/boost_1_42_0/lib/libboost_thread.a
> /usr/local/boost_1_42_0/lib/libboost_program_options.a -o link link_link.o
> link_main.o link_netlink.o link_rnetlink.o link_interface.o link_ethernet.o
> link-if.o ../mi/lib_mi.a ../s/lib.a ../utils/lib_utils.a
> /home/carlos/Arm/arm-2009q3/bin/../lib/gcc/arm-none-linux-gnueabi/4.4.1/../../../../arm-none-linux-gnueabi/bin/ld:
> warning: ../mi/lib_mi.a(archive.o) uses variable-size enums yet the output
> is to use 32-bit enums; use of enum values across objects may fail
> /home/carlos/Arm/arm-2009q3/bin/../lib/gcc/arm-none-linux-gnueabi/4.4.1/../../../../arm-none-linux-gnueabi/bin/ld:
> warning: ../mi/lib_mi.a(config.o) uses variable-size enums yet the output is
> to use 32-bit enums; use of enum values across objects may fail
> link-link.o: In function `__static_initialization_and_destruction_0':
> /usr/local/boost_1_42_0/include/boost/system/error_code.hpp:208: undefined
> reference to `boost::system::get_system_category()'
> /usr/local/boost_1_42_0/include/boost/system/error_code.hpp:209: undefined
> reference to `boost::system::get_generic_category()'
> /usr/local/boost_1_42_0/include/boost/system/error_code.hpp:214: undefined
> reference to `boost::system::get_generic_category()'
> /usr/local/boost_1_42_0/include/boost/system/error_code.hpp:215: undefined
> reference to `boost::system::get_generic_category()'
> /usr/local/boost_1_42_0/include/boost/system/error_code.hpp:216: undefined
> reference to `boost::system::get_system_category()
>

Static libraries need to come after anything that uses them on the
command line.

In Christ,
Steven Watanabe


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net