Issue #394
Verilated code doesn't compile on Visual Studio 2010
| Status: | Closed | Start date: | 09/21/2011 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assignee: | Wilson Snyder | % Done: | 0% |
|
| Category: | Configure/Make/Compiling | |||
| Target version: | - |
Description
The problem is that verilated.h uses trunc and round functions which are not defined on cmath.
See http://www.johndcook.com/math_h.html for comparison of functions in the C math.h header across different compilers.
Perhaps you could either use other functions or add an implementation for these functions when the compiler is Visual Studio.
Thanks,
Amir
History
Updated by Wilson Snyder over 1 year ago
- Category set to Configure/Make/Compiling
- Status changed from New to Resolved
- Assignee set to Wilson Snyder
Thanks for the pointer; simple enough to work around.
Fixed in git towards 3.822.
Also available in: Atom
![[logo]](/img/veripool_small.png)