Opened 18 years ago
Closed 18 years ago
#20 closed defect (fixed)
random.h fails to compile on Cygwin
| Reported by: | Alpar Juttner | Owned by: | Alpar Juttner |
|---|---|---|---|
| Priority: | major | Milestone: | LEMON 1.0 release |
| Component: | core | Version: | hg main |
| Keywords: | Cc: | ||
| Revision id: |
Description
lemon/random.h fails to compile on Cygwin, because #include<cmath> doesn't define M_E.
This bug appears in [1113f6d12c0c] and also in svn trunk -r3441. In svn trunk similar bugs also appear at other places due to the missing M_X constants.
Change History (2)
comment:1 Changed 18 years ago by
comment:2 Changed 18 years ago by
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Solved in [a315a588a20d] by adding a header file lemon/math.h containing some useful mathematical constants.
Note: See
TracTickets for help on using
tickets.


Please have a look at this for a possible solution:
http://lime.cs.elte.hu/~alpar/hgwebdir.cgi/lemon/rev/3a6cdebbb855