Hi All!
The problem has been solved. There were three problems in the hugin cpp header file:
No1: The INFINITY function of the NetworkModel class:
/** The infinity value used by Hugin
@return infinity, represented as a double
*/
double INFINITY () const;
The problem here is that INFINITY is already declared: it is the built in function of gcc __builtin_inff. Thus the compiler indicates the following error:
‘__builtin_inff’ declared as function returning a function hugin.h HuginAPI/src 369 C/C++ Problem
The solution is to undef infinity right at the beginning of the header:
#endif /* _WIN32 */
#endif /* H_DLL */
#ifdef INFINITY
#undef INFINITY
#endif
#include <string>
#include <vector>
No 2: H_DLL bool evidenceModeIs (EvidenceMode ev) const; in class Domain
Gcc has some problem with EvidenceMode ev
The solution is to change ev to anything you like (ev -> em):
H_DLL bool evidenceModeIs (EvidenceMode em) const;
No3:
The same problem as No 2 with function propagate of class Domain:
The solution again:
H_DLL void propagate (Equilibrium eq = H_EQUILIBRIUM_SUM,
EvidenceMode em = H_MODE_NORMAL);
Br,
Szabolcs