hey guys (:
I use the wizard for creating a static library.
In the main.c file there is a little sample which I compiled:
int SampleAddInt(int i1, int i2)
{
return i1 + i2;
}
// A function doing nothing ;)
void SampleFunction1()
{
// insert code here
}
// A function always returning zero
int SampleFunction2()
{
// insert code here
return 0;
}
I tried it and it worked ( I got a .a file ) But when I want to use it in a project like:
#include <iostream>
using namespace std;
int main()
{
cout << SampleAddInt ( 12, 14 ) << endl ;
}
I get an error:
'SimpleAddInt' was not declared in this scope
I linked the .a file, but it didnĀ“t work. :S
Can somebody help me ?