Problem with liborocos-gnulinux.a linking

Artem Orlov <[email protected]> Thu, 16 Jun 2005 14:51:29 +0400
Newsgroups gmane.science.robotics.orocos.user
Message-ID <[email protected]>
Hello everyone!

I tried the example from orocos-manual.pdf but when linking it
produced errors which I couldn't fix by myself. In attachment one can
see example, makefile and compiler output.

Really I am not keen with OROCOS configuration and make a mistake somewhere.

I have all the logs that OROCOS produced while installation and
compilation steps.
They are located in http://artemorlov.narod.ru
Sometimes it is slow. Please be patient.

Thank you.

-- 
With respect,
Artem Orlov

_______________________________________________
Orocos mailing list
[email protected]
http://lists.mech.kuleuven.be/mailman/listinfo/orocos
PeriodicThread.cpp (text/x-c, 552 B)
#include <os/main.h>
#include <corelib/PriorityTask.hpp>

using namespace ORO_CoreLib;

class KineLoop : public RunnableInterface
{
	bool initialize()
	{
	}
	void step()
	{
	}
	void finalize()
	{
	}
};

int ORO_main(int argc, char** argv)
{
	KineLoop	kine_loop;
	
	PriorityThread<9>::Instance()->setPeriod(0.01);
	PriorityThread<9>::Instance()->start();
	
	PriorityThread<9>::Instance()->makeHardRealtime();
	
	PriorityTask<9>	own_task(0.05, &kine_loop);
	own_task.start();
	
	for(int index=0; index<10000; ++index);
	
	own_task.stop();
	
	return 0;
}
makefile (application/octet-stream, 462 B) - not displayed
make.log (text/x-log, 9.2 KB)
gcc -O2 -I/usr/local/orocos/include -L/usr/local/orocos/lib -lorocos-gnulinux -lstdc++ -lpthread -lboost_signals -lreadline -lncurses PeriodicThread.cpp \
-o ../bin/PeriodicThread
/tmp/cckPtIwv.o(.text+0x74): In function `ORO_main':
: undefined reference to `ORO_CoreLib::TimerThread::TimerThread[not-in-charge](int, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, double)'
/tmp/cckPtIwv.o(.text+0x227): In function `ORO_main':
: undefined reference to `ORO_OS::PeriodicThread::setPeriod(double)'
/tmp/cckPtIwv.o(.text+0x285): In function `ORO_main':
: undefined reference to `ORO_CoreLib::TimerThread::TimerThread[not-in-charge](int, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, double)'
/tmp/cckPtIwv.o(.text+0x3d8): In function `ORO_main':
: undefined reference to `ORO_CoreLib::TimerThread::TimerThread[not-in-charge](int, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, double)'
/tmp/cckPtIwv.o(.text+0x531): In function `ORO_main':
: undefined reference to `ORO_CoreLib::TimerThread::TimerThread[not-in-charge](int, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, double)'
/tmp/cckPtIwv.o(.text+0x649): In function `ORO_main':
: undefined reference to `ORO_CoreLib::PeriodicTask::PeriodicTask[not-in-charge](double, ORO_CoreLib::TimerThread*, ORO_CoreLib::RunnableInterface*, bool)'
/tmp/cckPtIwv.o(.text+0x657): In function `ORO_main':
: undefined reference to `ORO_CoreLib::PeriodicTask::start()'
/tmp/cckPtIwv.o(.text+0x667): In function `ORO_main':
: undefined reference to `ORO_CoreLib::PeriodicTask::stop()'
/tmp/cckPtIwv.o(.text+0x67a): In function `ORO_main':
: undefined reference to `ORO_CoreLib::PeriodicTask::stop()'
/tmp/cckPtIwv.o(.text+0x682): In function `ORO_main':
: undefined reference to `ORO_CoreLib::PeriodicTask::~PeriodicTask [not-in-charge]()'
/tmp/cckPtIwv.o(.text+0x775): In function `ORO_main':
: undefined reference to `ORO_CoreLib::TimerThread::~TimerThread [not-in-charge]()'
/tmp/cckPtIwv.o(.text+0x7ca): In function `ORO_main':
: undefined reference to `ORO_CoreLib::TimerThread::~TimerThread [not-in-charge]()'
/tmp/cckPtIwv.o(.text+0x7d6): In function `ORO_main':
: undefined reference to `ORO_CoreLib::PeriodicTask::~PeriodicTask [not-in-charge]()'
/tmp/cckPtIwv.o(.text+0x7f0): In function `ORO_main':
: undefined reference to `ORO_CoreLib::PeriodicTask::stop()'
/tmp/cckPtIwv.o(.gnu.linkonce.r._ZTVN11ORO_CoreLib12PriorityTaskILi9EEE+0x10): undefined reference to `ORO_CoreLib::PeriodicTask::start()'
/tmp/cckPtIwv.o(.gnu.linkonce.r._ZTVN11ORO_CoreLib12PriorityTaskILi9EEE+0x14): undefined reference to `ORO_CoreLib::PeriodicTask::stop()'
/tmp/cckPtIwv.o(.gnu.linkonce.r._ZTVN11ORO_CoreLib12PriorityTaskILi9EEE+0x18): undefined reference to `ORO_CoreLib::PeriodicTask::isRunning() const'
/tmp/cckPtIwv.o(.gnu.linkonce.r._ZTVN11ORO_CoreLib12PriorityTaskILi9EEE+0x1c): undefined reference to `ORO_CoreLib::PeriodicTask::getPeriod() const'
/tmp/cckPtIwv.o(.gnu.linkonce.r._ZTVN11ORO_CoreLib12PriorityTaskILi9EEE+0x20): undefined reference to `ORO_CoreLib::PeriodicTask::getEventProcessor() const'
/tmp/cckPtIwv.o(.gnu.linkonce.r._ZTVN11ORO_CoreLib12PriorityTaskILi9EEE+0x24): undefined reference to `ORO_CoreLib::PeriodicTask::thread()'
/tmp/cckPtIwv.o(.gnu.linkonce.r._ZTVN11ORO_CoreLib12PriorityTaskILi9EEE+0x28): undefined reference to `ORO_CoreLib::PeriodicTask::initialize()'
/tmp/cckPtIwv.o(.gnu.linkonce.r._ZTVN11ORO_CoreLib12PriorityTaskILi9EEE+0x2c): undefined reference to `ORO_CoreLib::PeriodicTask::step()'
/tmp/cckPtIwv.o(.gnu.linkonce.r._ZTVN11ORO_CoreLib12PriorityTaskILi9EEE+0x30): undefined reference to `ORO_CoreLib::PeriodicTask::finalize()'
/tmp/cckPtIwv.o(.gnu.linkonce.r._ZTVN11ORO_CoreLib14PriorityThreadILi9EEE+0x10): undefined reference to `ORO_OS::PeriodicThread::run(ORO_OS::RunnableInterface*)'
/tmp/cckPtIwv.o(.gnu.linkonce.r._ZTVN11ORO_CoreLib14PriorityThreadILi9EEE+0x14): undefined reference to `ORO_OS::PeriodicThread::start()'
/tmp/cckPtIwv.o(.gnu.linkonce.r._ZTVN11ORO_CoreLib14PriorityThreadILi9EEE+0x18): undefined reference to `ORO_OS::PeriodicThread::stop()'
/tmp/cckPtIwv.o(.gnu.linkonce.r._ZTVN11ORO_CoreLib14PriorityThreadILi9EEE+0x1c): undefined reference to `ORO_OS::PeriodicThread::getPeriod() const'
/tmp/cckPtIwv.o(.gnu.linkonce.r._ZTVN11ORO_CoreLib14PriorityThreadILi9EEE+0x20): undefined reference to `ORO_OS::PeriodicThread::getPeriodNS() const'
/tmp/cckPtIwv.o(.gnu.linkonce.r._ZTVN11ORO_CoreLib14PriorityThreadILi9EEE+0x24): undefined reference to `ORO_OS::PeriodicThread::isRunning() const'
/tmp/cckPtIwv.o(.gnu.linkonce.r._ZTVN11ORO_CoreLib14PriorityThreadILi9EEE+0x28): undefined reference to `ORO_OS::PeriodicThread::getName() const'
/tmp/cckPtIwv.o(.gnu.linkonce.r._ZTVN11ORO_CoreLib14PriorityThreadILi9EEE+0x2c): undefined reference to `ORO_OS::PeriodicThread::makeHardRealtime()'
/tmp/cckPtIwv.o(.gnu.linkonce.r._ZTVN11ORO_CoreLib14PriorityThreadILi9EEE+0x30): undefined reference to `ORO_OS::PeriodicThread::makeSoftRealtime()'
/tmp/cckPtIwv.o(.gnu.linkonce.r._ZTVN11ORO_CoreLib14PriorityThreadILi9EEE+0x34): undefined reference to `ORO_OS::PeriodicThread::isHardRealtime() const'
/tmp/cckPtIwv.o(.gnu.linkonce.r._ZTVN11ORO_CoreLib14PriorityThreadILi9EEE+0x38): undefined reference to `ORO_OS::PeriodicThread::getPriority() const'
/tmp/cckPtIwv.o(.gnu.linkonce.r._ZTVN11ORO_CoreLib14PriorityThreadILi9EEE+0x3c): undefined reference to `ORO_OS::PeriodicThread::continuousStepping(bool)'
/tmp/cckPtIwv.o(.gnu.linkonce.r._ZTVN11ORO_CoreLib14PriorityThreadILi9EEE+0x40): undefined reference to `ORO_OS::PeriodicThread::setToStop()'
/tmp/cckPtIwv.o(.gnu.linkonce.r._ZTVN11ORO_CoreLib14PriorityThreadILi9EEE+0x44): undefined reference to `ORO_CoreLib::TimerThread::step()'
/tmp/cckPtIwv.o(.gnu.linkonce.r._ZTVN11ORO_CoreLib14PriorityThreadILi9EEE+0x48): undefined reference to `ORO_CoreLib::TimerThread::initialize()'
/tmp/cckPtIwv.o(.gnu.linkonce.r._ZTVN11ORO_CoreLib14PriorityThreadILi9EEE+0x4c): undefined reference to `ORO_CoreLib::TimerThread::finalize()'
/tmp/cckPtIwv.o(.gnu.linkonce.r._ZTVN11ORO_CoreLib14PriorityThreadILi9EEE+0x60): undefined reference to `non-virtual thunk [nv:-92] to ORO_CoreLib::TimerThread::initialize()'
/tmp/cckPtIwv.o(.gnu.linkonce.r._ZTVN11ORO_CoreLib14PriorityThreadILi9EEE+0x64): undefined reference to `non-virtual thunk [nv:-92] to ORO_CoreLib::TimerThread::step()'
/tmp/cckPtIwv.o(.gnu.linkonce.r._ZTVN11ORO_CoreLib14PriorityThreadILi9EEE+0x70): undefined reference to `non-virtual thunk [nv:-92] to ORO_CoreLib::TimerThread::finalize()'
/tmp/cckPtIwv.o(.gnu.linkonce.t._ZN11ORO_CoreLib12PriorityTaskILi9EED1Ev+0x19): In function `ORO_CoreLib::PriorityTask<(int)9>::~PriorityTask [in-charge]()':
: undefined reference to `ORO_CoreLib::PeriodicTask::stop()'
/tmp/cckPtIwv.o(.gnu.linkonce.t._ZN11ORO_CoreLib12PriorityTaskILi9EED1Ev+0x21): In function `ORO_CoreLib::PriorityTask<(int)9>::~PriorityTask [in-charge]()':
: undefined reference to `ORO_CoreLib::PeriodicTask::~PeriodicTask [not-in-charge]()'
/tmp/cckPtIwv.o(.gnu.linkonce.t._ZN11ORO_CoreLib12PriorityTaskILi9EED1Ev+0x36): In function `ORO_CoreLib::PriorityTask<(int)9>::~PriorityTask [in-charge]()':
: undefined reference to `ORO_CoreLib::PeriodicTask::~PeriodicTask [not-in-charge]()'
/tmp/cckPtIwv.o(.gnu.linkonce.t._ZN11ORO_CoreLib12PriorityTaskILi9EED0Ev+0x19): In function `ORO_CoreLib::PriorityTask<(int)9>::~PriorityTask [in-charge deleting]()':
: undefined reference to `ORO_CoreLib::PeriodicTask::stop()'
/tmp/cckPtIwv.o(.gnu.linkonce.t._ZN11ORO_CoreLib12PriorityTaskILi9EED0Ev+0x21): In function `ORO_CoreLib::PriorityTask<(int)9>::~PriorityTask [in-charge deleting]()':
: undefined reference to `ORO_CoreLib::PeriodicTask::~PeriodicTask [not-in-charge]()'
/tmp/cckPtIwv.o(.gnu.linkonce.t._ZN11ORO_CoreLib12PriorityTaskILi9EED0Ev+0x3c): In function `ORO_CoreLib::PriorityTask<(int)9>::~PriorityTask [in-charge deleting]()':
: undefined reference to `ORO_CoreLib::PeriodicTask::~PeriodicTask [not-in-charge]()'
/tmp/cckPtIwv.o(.gnu.linkonce.r._ZTIN11ORO_CoreLib14PriorityThreadILi9EEE+0x8): undefined reference to `typeinfo for ORO_CoreLib::TimerThread'
/tmp/cckPtIwv.o(.gnu.linkonce.r._ZTIN11ORO_CoreLib12PriorityTaskILi9EEE+0x8): undefined reference to `typeinfo for ORO_CoreLib::PeriodicTask'
/tmp/cckPtIwv.o(.gnu.linkonce.t._ZN11ORO_CoreLib14PriorityThreadILi9EED1Ev+0x58): In function `ORO_CoreLib::PriorityThread<(int)9>::~PriorityThread [in-charge]()':
: undefined reference to `ORO_CoreLib::TimerThread::~TimerThread [not-in-charge]()'
/tmp/cckPtIwv.o(.gnu.linkonce.t._ZN11ORO_CoreLib14PriorityThreadILi9EED1Ev+0x6c): In function `ORO_CoreLib::PriorityThread<(int)9>::~PriorityThread [in-charge]()':
: undefined reference to `ORO_CoreLib::TimerThread::~TimerThread [not-in-charge]()'
/tmp/cckPtIwv.o(.gnu.linkonce.t._ZN11ORO_CoreLib14PriorityThreadILi9EED0Ev+0x58): In function `ORO_CoreLib::PriorityThread<(int)9>::~PriorityThread [in-charge deleting]()':
: undefined reference to `ORO_CoreLib::TimerThread::~TimerThread [not-in-charge]()'
/tmp/cckPtIwv.o(.gnu.linkonce.t._ZN11ORO_CoreLib14PriorityThreadILi9EED0Ev+0x76): In function `ORO_CoreLib::PriorityThread<(int)9>::~PriorityThread [in-charge deleting]()':
: undefined reference to `ORO_CoreLib::TimerThread::~TimerThread [not-in-charge]()'
collect2: ld returned 1 exit status
make: *** [all] Error 1