-
Notifications
You must be signed in to change notification settings - Fork 205
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to compile to executable. #433
Comments
I'm hoping one of our Windows users can step in to help debug this, as I don't have a working Windows dev environment. @SrMordred is this dependent on using |
Yes, it also fail with just a do nothing function. |
It may be related to this: |
Are you running in the Visual Studio command prompt? If not can you try that? I believe Terra does require some environment variables that are set by that command prompt and otherwise certain things cannot be made to work. There was a lot of work that went into #411 to fix this, but I believe it still requires the Visual Studio command prompt since newer Visual Studio versions don't set the right (or any) registry keys. |
I tried to run with "vcvarsall.bat", but it didn´t work. Maybe is my env that is messed up. |
If i call |
This means the vclinker code isn't working properly, but it'll be very hard to figure out why it's broken. Can you try compiling something with clang and see if you still get a problem? If Clang can't find your visual studio linker, we won't be able to either, since our code is based on clang. |
Yes i can compile with clang properly. |
Actually, the beta1 precompiled EXE was never updated by @elliottslaughter. Are you running the precompiled release? It won't have the necessary updates to work with visual studio at all - you have to compile from source. |
Just FYI, we made a new release, so this problem should hopefully go away if you try the new binaries: https://github.com/terralang/terra/releases/tag/release-1.0.0-beta2 |
Yes, its working now, thanks! |
if you are having printf issues on windows, refer to this pull request which attempted to fix it before: #414 |
Windows 10
terra main.t
The text was updated successfully, but these errors were encountered: