vlang / v

Simple, fast, safe, compiled language for developing maintainable software. Compiles itself in <1s with zero library dependencies. Supports automatic C => V translation. https://vlang.io
MIT License
35.79k stars 2.16k forks source link

v . -autofree error #9315

Open potros opened 3 years ago

potros commented 3 years ago

V version : V 0.2.2 25c07c2 OS : windows, Microsoft Windows 7 Home Premium v7601 64-bit

What did you do? v . -autofree

What did you expect to see? compilation success

What did you see instead?

C:/Windows/TEMP/v/teest.16936259736415212324.tmp.c:24254: warning: cast between pointer and integer of different size
C:/Windows/TEMP/v/teest.16936259736415212324.tmp.c:24866: error: '_t901' undeclared
...
==================
(Use `v -cg` to print the entire error message)

builder error:
==================
C error. This should never happen.

If you were not working with C interop, this is a compiler bug, please raise an issue on GitHub:

https://github.com/vlang/v/issues/new/choose

You can also use #help on Discord: https://discord.gg/vlang
JalonSolov commented 3 years ago

You don't mention what you were compiling, but I can say that flags for V go before the file/directory name of what you wish to compile.

So the proper command line would have been

v -autofree .

Question: Do you get the same failure with just v .?

potros commented 3 years ago

i tried v -autofree . but i get the same error

i'm compiling : https://github.com/nedpals/vex/ example

note : v . works