MinGW build of verilator 3.872 breaks on setenv() #929
Labels
area: configure/compiling
Issue involves configuring or compilating Verilator itself
resolution: fixed
Closed; fixed
Author Name: Hans Tichelaar
Original Redmine Issue: 929 from https://www.veripool.org
Original Date: 2015-06-08
Original Assignee: Wilson Snyder (@wsnyder)
When building verilator 3.872 with MinGW I get following error:
@../V3Os.cpp: In static member function 'static void V3Os::setenvStr(const string
&, const string&, const string&)':
../V3Os.cpp:59:45: error: 'setenv' was not declared in this scope
setenv(envvar.c_str(),value.c_str(),true);@
The error is caused by the fact that MinGW doesn't support setenv() and the compiler flags are insufficient to switch to the putenv() alternative. The code that causes this issue is in file V3Os.cpp, lines 58 - 65:
Simple workaround can be following:
The text was updated successfully, but these errors were encountered: