Following #142 and #143, additional fixes required to build qucs on FreeBSD.
Patches: https://github.com/AMDmi3/qucs/compare/freebsd (remote: git://github.com/AMDmi3/qucs.git)
With this, qucs from master builds on FreeBSD 10 with gcc 4.6 and newer.
I couldn't compile it with clang though: http://people.freebsd.org/~amdmi3/qucs.clang.log
Thank you for the fixes.
Just a reminder about
std::isinf
and similar.On Windows, MinGW seems to handle things differently.
For portability perhaps is best if we fix it
on src/compat.h
See:
https://github.com/guitorri/qucs/commit/ab47bc38253c17753629157b0824cd648d667c69
https://github.com/guitorri/qucs/commit/131f648ab41270666f1563e1047a760f3a83a90a
This is some work I haven't yet merged, but I could cherry pick to master.
About clang, I am not sure. Can you give us the version? On OSX clang++ is the default compiler, and the one I currently use.
Regards,
It seems to me that it's just C macro interfering with C++. std::isinf is part of c++11 standard, so std::isinf must work. A macro, however, may get in its way by redefining isinf token with some garbage - in this case #undef isinf should help.
clang 3.3, libc++ from Jun 2013. I should try to build it on HEAD, which has clang 3.4 and recently imported libc++.
Note that github branch was rebased - I've missed that $prefix was added to both include AND library paths.
Should be fixed on master.