A
Andrea Crotti
I finally managed to change my build system (with autoconf) and now I
can even use boost auto-magically.
Now I understand also why using the single header is not the only choice
http://www.boost.org/doc/libs/1_44_...ide/usage-variants/single-header-variant.html
it's terribly slower...
But I can't get running the other version, no matter what I do.
I used boost.m4 from
https://github.com/tsuna/boost.m4
but it can't find the library in any way...
In the end this command is executed
/bin/sh ./libtool --tag=CXX --mode=link g++ -g -O2 -lboost_unit_test_framework-mt -o mobpad mobpad-test.o libwifi-fw.la
libtool: link: g++ -g -O2 -o .libs/mobpad mobpad-test.o -Wl,-bind_at_load -lboost_unit_test_framework-mt ./.libs/libwifi-fw.dylib
ld: library not found for -lboost_unit_test_framework-mt
what I see missing is "-L/opt/local/lib" but following the guide in the
Makefile.am I have
bin_PROGRAMS = mobpad
mobpad_SOURCES = test.cpp
mobpad_LDADD = $(lib_LTLIBRARIES)
mobpad_LIBS = $(BOOST_UNIT_TEST_FRAMEWORK_LIBS)
mobpad_LDFLAGS = $(BOOST_UNIT_TEST_FRAMEWORK_LIBS)
mobpad_CPPFLAGS = $(BOOST_CPPFLAGS)
whish should be all I need... Is there anything else??
And another problem.
I have a "class Stream".
which I'm very happy to know that also BOOST uses!
test.cpp:34: error: redefinition of ‘struct Stream’
Stream.hpp:13: error: previous definition of ‘struct Stream
Shouln't it use its own namespace?
I'm using the simple version
#define BOOL_TEST_MAIN 1
#define BOOST_TEST_MODULE MobPad
#include <boost/test/included/unit_test.hpp>
which maybe has some drawbacks...
can even use boost auto-magically.
Now I understand also why using the single header is not the only choice
http://www.boost.org/doc/libs/1_44_...ide/usage-variants/single-header-variant.html
it's terribly slower...
But I can't get running the other version, no matter what I do.
I used boost.m4 from
https://github.com/tsuna/boost.m4
but it can't find the library in any way...
In the end this command is executed
/bin/sh ./libtool --tag=CXX --mode=link g++ -g -O2 -lboost_unit_test_framework-mt -o mobpad mobpad-test.o libwifi-fw.la
libtool: link: g++ -g -O2 -o .libs/mobpad mobpad-test.o -Wl,-bind_at_load -lboost_unit_test_framework-mt ./.libs/libwifi-fw.dylib
ld: library not found for -lboost_unit_test_framework-mt
what I see missing is "-L/opt/local/lib" but following the guide in the
Makefile.am I have
bin_PROGRAMS = mobpad
mobpad_SOURCES = test.cpp
mobpad_LDADD = $(lib_LTLIBRARIES)
mobpad_LIBS = $(BOOST_UNIT_TEST_FRAMEWORK_LIBS)
mobpad_LDFLAGS = $(BOOST_UNIT_TEST_FRAMEWORK_LIBS)
mobpad_CPPFLAGS = $(BOOST_CPPFLAGS)
whish should be all I need... Is there anything else??
And another problem.
I have a "class Stream".
which I'm very happy to know that also BOOST uses!
test.cpp:34: error: redefinition of ‘struct Stream’
Stream.hpp:13: error: previous definition of ‘struct Stream
Shouln't it use its own namespace?
I'm using the simple version
#define BOOL_TEST_MAIN 1
#define BOOST_TEST_MODULE MobPad
#include <boost/test/included/unit_test.hpp>
which maybe has some drawbacks...