Compilation problem on Windows for Visual Studio 2005 #42
Labels
area: configure/compiling
Issue involves configuring or compilating Verilator itself
resolution: fixed
Closed; fixed
Author Name: John Stroebel
Original Redmine Issue: 42 from https://www.veripool.org
Original Date: 2008-10-27
Original Assignee: Wilson Snyder (@wsnyder)
I am currently using version 3.670 of Verilator.
I receive a few errors when compiling verilated code in Visual Studio 2005 on Windows. In verilated.cpp I needed to add "#include " to remove a bunch of compile-time errors. I still get an error in function VL_FGETS_IXQ because of the following line of code:
char buffer[bytes];
The compiler is expecting a constant expression for the size of buffer. "bytes" is a variable.
Finally, in verilatedos.h, I had to modify the typedef of uint32_t in the _WIN32 section from:
typedef unsigned long uint32_t; ///< 32-bit unsigned type (backward compatibility)
to
typedef unsigned int uint32_t; ///< 32-bit unsigned type (backward compatibility)
The text was updated successfully, but these errors were encountered: