Issue #346
Undeclared svBitVecVal
| Status: | Closed | Start date: | 05/10/2011 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assignee: | Wilson Snyder | % Done: | 0% |
|
| Category: | TranslationError | |||
| Target version: | - |
Description
Verilator version: Verilator 3.812 2011/04/06 rev verilator_3_811-18-ga20b4f2
When a module with a DPI-C exported task is verilated and compiled, gcc complains that
ISO C++ forbids declaration of 'svBitVecVal' with no typewhen it compiles the file V<base>__ALLcls.cpp. This seems to be due to the fact that svdpi.h is not included.
History
Updated by Chandan Egbert about 1 year ago
- File dpi_issue1.tgz added
Please see attached example. Use "sh doit.sh" to verilate and compile.
Updated by Chandan Egbert about 1 year ago
- File patch346 added
The attached patch fixes the problem. The changes are in the following files:
src/V3EmitC.cpp src/V3EmitCSyms.cpp
Updated by Wilson Snyder about 1 year ago
- Status changed from New to Resolved
- Assignee set to Wilson Snyder
Thanks for a great patch, looks right on.
Fixed in git for 3.813.
Updated by Wilson Snyder about 1 year ago
Looking at bug347, I needed an include in the interface too. I pushed this to git.
Also available in: Atom
![[logo]](/img/veripool_small.png)