I have a little problem with Gaol, under Visual Studio Express 2005, when i try to use some functions. For example, with sinus, the following code sample
#include <iostream>
#include <gaol/gaol.h>
using namespace std;
using namespace gaol;
int main(void)
{
gaol::init();
interval x(-2,2);
cout << sin(x) << endl;
cout << x.width() << endl;
return 0;
}
not link, and I obtain this error message : "main.obj : error LNK2001: unresolved external symbol "public: static class gaol::interval const gaol::interval::half_pi" (?half_pi@interval@gaol@@2V12@B)". In the same manner, I obtain the same type of error message (main.obj : error LNK2001: unresolved external symbol "public: static class gaol::interval const gaol::interval::emptyset" (?emptyset@interval@gaol@@2V12@B)) when I try to use the constant like interval::emptyset.
On the other hand, when I use the function cosinus, the linkage works fine : cout << cos(x) << endl;
Thanks by advance
Bye,
Mehdi Lhommeau
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have a little problem with Gaol, under Visual Studio Express 2005, when i try to use some functions. For example, with sinus, the following code sample
#include <iostream>
#include <gaol/gaol.h>
using namespace std;
using namespace gaol;
int main(void)
{
gaol::init();
interval x(-2,2);
cout << sin(x) << endl;
cout << x.width() << endl;
return 0;
}
not link, and I obtain this error message : "main.obj : error LNK2001: unresolved external symbol "public: static class gaol::interval const gaol::interval::half_pi" (?half_pi@interval@gaol@@2V12@B)". In the same manner, I obtain the same type of error message (main.obj : error LNK2001: unresolved external symbol "public: static class gaol::interval const gaol::interval::emptyset" (?emptyset@interval@gaol@@2V12@B)) when I try to use the constant like interval::emptyset.
On the other hand, when I use the function cosinus, the linkage works fine : cout << cos(x) << endl;
Thanks by advance
Bye,
Mehdi Lhommeau
Hi,
Version 2.0.2 should correct this problem. See ChangeLog.
Thank you for the bug report.
Cheers.