v
v copied to clipboard
Builder error
Describe the bug
When I compile the program it output a builder error
Expected Behavior
It to compile (but it's an MRE so no specific usage)
Current Behavior
C:/Users/PACHECON/AppData/Local/Temp/v_0/test_file.9461669205531791920.tmp.c:492: warning: WINVER redefined
C:/Users/PACHECON/AppData/Local/Temp/v_0/test_file.9461669205531791920.tmp.c:6827: warning: implicit declaration of function 'tcc_backtrace'
C:/Users/PACHECON/AppData/Local/Temp/v_0/test_file.9461669205531791920.tmp.c:7575: warning: assignment from incompatible pointer type
C:/Users/PACHECON/AppData/Local/Temp/v_0/test_file.9461669205531791920.tmp.c:7575: warning: assignment makes pointer from integer without a cast
C:/Users/PACHECON/AppData/Local/Temp/v_0/test_file.9461669205531791920.tmp.c:7575: warning: cast between pointer and integer of different size
C:/Users/PACHECON/AppData/Local/Temp/v_0/test_file.9461669205531791920.tmp.c:12435: error: 'stat' undeclared
builder error:
==================
Reproduction Steps
fn main(){
println(C.stat)
}
Possible Solution
No response
Additional Information/Context
No response
V version
Current V version: V 0.3.3 792b822, timestamp: 2023-03-07 18:13:19 +0200
Environment details (OS name and version, etc.)
OS: windows, Microsoft Windows 10 Education v19045 64 bits
All those warnings are Windows specific. On Linux, I only get
/tmp/v_1000/../../../../../../home/jalon/test_file.v:2: error: 'stat' undeclared
builder error:
==================