by krokido » Sat Mar 10, 2012 11:34 pm
by krokido
Sat Mar 10, 2012 11:34 pm
Hi
I have installed the Lubuntu image, as supplied by Roboard on their website, onto the roboard RB-100. works great!
I can make a simple 'hello world' program in C++ using G++ as compiler
But as soon as I want to use Roboard specific functionality, such as 'roboio_SetRBVer(RB_100)', I get the following error message from g++:
'undefined reference to 'roboio_SetRBVer' colelct2: ls returned 1 exit status'
I am having troubles with making/installing/placing the RoBoIO library... I don't know where to put what and how ... a general lack of knowledge on my part here ...
I have very little experience with Linux and g++ so ... 'newbyproof' answers are highly appreciated!
The code I made:
- Code: Select all
#include <iostream>
#include <stdio>
#include <string>
#include <stdlib>
#include "roboard.h"
using namespace std;
int Add(int x, int y)
{
return(x+y);
}
int main()
{
roboio_SetRBVer(RB_100);
int a, b, c;
cout << "Hello World!" << endl;
cout << "give the two numbers to add;" <<endl>> a;
cin >> b;
c = Add(a, b);
cout << "a + b = " << c << endl;
return 0;
}
Hi
I have installed the Lubuntu image, as supplied by Roboard on their website, onto the roboard RB-100. works great!
I can make a simple 'hello world' program in C++ using G++ as compiler
But as soon as I want to use Roboard specific functionality, such as 'roboio_SetRBVer(RB_100)', I get the following error message from g++:
'undefined reference to 'roboio_SetRBVer' colelct2: ls returned 1 exit status'
I am having troubles with making/installing/placing the RoBoIO library... I don't know where to put what and how ... a general lack of knowledge on my part here ...
I have very little experience with Linux and g++ so ... 'newbyproof' answers are highly appreciated!
The code I made:
- Code: Select all
#include <iostream>
#include <stdio>
#include <string>
#include <stdlib>
#include "roboard.h"
using namespace std;
int Add(int x, int y)
{
return(x+y);
}
int main()
{
roboio_SetRBVer(RB_100);
int a, b, c;
cout << "Hello World!" << endl;
cout << "give the two numbers to add;" <<endl>> a;
cin >> b;
c = Add(a, b);
cout << "a + b = " << c << endl;
return 0;
}