Skip to content
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 link: no vcvars #1129

Closed
shawnye opened this issue Aug 14, 2016 · 7 comments
Closed

unable to link: no vcvars #1129

shawnye opened this issue Aug 14, 2016 · 7 comments

Comments

@shawnye
Copy link

shawnye commented Aug 14, 2016

I have vs2010 express installed and cl is OK

Then I'm starting my first pony program from tutorial, compile ok but link failed:

g:\dev\pony\test>ponyc
Building builtin -> e:\yexy6\ponyc\ponyc-master-0.2.1-1328.d6f759a-win64\packages\builtin
Building . -> g:\dev\pony\test
Generating
 Reachability
 Selector painting
 Data prototypes
 Data types
 Function prototypes
 Functions
 Descriptors
Optimising
Writing .\test.obj
Error:
unable to link: no vcvars
@SeanTAllen
Copy link
Member

@kulibali any ideas?

@chalcolith
Copy link
Member

chalcolith commented Aug 14, 2016

The compiler only knows about VS2013 and higher. Do we need to support older versions?

@SeanTAllen
Copy link
Member

@shawnye you need to use VS2015 per the README. VS2013 might work but it isnt supported.

@shawnye
Copy link
Author

shawnye commented Mar 31, 2017

I've installed Visual C++ 2015 Build Tools, and use ponyc-0.12.2-win64, the error still occurred,

I found vsvars32.bat in C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools\ , no vsvars.bat file , maybe this is the reason ?

@SeanTAllen
Copy link
Member

@kulibali any thoughts? I'm always in the dark on "almost all things windows".

@chalcolith
Copy link
Member

I'll take a look. I may have broken this with my recent VS2017 change.

@chalcolith
Copy link
Member

Ok, #1794 fixes the broken Build Tools support and cleans up the Visual Studio detection in general.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants