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

error when compiling on Windows 7 #59

Closed
tomhoward87 opened this issue May 27, 2014 · 6 comments
Closed

error when compiling on Windows 7 #59

tomhoward87 opened this issue May 27, 2014 · 6 comments

Comments

@tomhoward87
Copy link

I'm getting an error when I try to compile on Windows 7 - I have rebar installed and on my path, along with cl from Visual Studio 2010 (which I understand should be recent enough). However it seems that the file "assert.h" is missing:

$ rebar compile
==> jiffy (compile)
Compiling c_src/decoder.c
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.30319.01 for 80x86
Copyright (C) Microsoft Corporation. All rights reserved.

decoder.c
c_src/decoder.c(4) : fatal error C1083: Cannot open include file: 'assert.h': No such file or directory
ERROR: compile failed while processing c:/Users/gbhowarto/code/orca/deps/jiffy: rebar_abort

@davisp
Copy link
Owner

davisp commented May 27, 2014

@dch Any idea where assert.h lives on Windows?

@tomhoward87 That should be a system include somewhere. I'm not at all familiar with Windows or its various compilers to know where to even look for it though.

@dch
Copy link
Contributor

dch commented May 27, 2014

@davisp it should be part of the std library, e.g. http://msdn.microsoft.com/en-us/library/9sb57dw4.aspx and on my std couch build box

C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\crt\src\assert.h
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\assert.h

@tomhoward87 what shell & setup are you using ? Usually the issue is that your unix shell has one set of path expectations and the windows side a different set (e.g. INCLUDE in unix shell is not the same as Include in windows shell). While my example might not be right this should at least point you on the right track.

A quick check here has jiffy compiling, using SDK 7.1 (pretty close to VC 10.0), R14B04, and recent rebar, without a unix shell in between. For jiffy, I'd assume it will work correctly with either gcc OR cl but not necessarily mixing shells + compilers. YMMV, I know mine has in the past with this combo :-)

@dch
Copy link
Contributor

dch commented May 27, 2014

I should mention that I couldn't get this to run on my config, in fact not even the old github.com/vmx/hellonif.git example that Volker & I did a couple of years ago worked for me. So don't take this as a sign of jiffy being broken, just my windows-fu has decayed. I've not got the time to install a full debugger to look further sorry.

@tomhoward87
Copy link
Author

I've been using Git Bash which is MinGW, but I also tried using the windows shell (cmd and powershell) and got the same result. I tried adding both the include and the crt\src folders to my path but no luck. It looks like I'm using cl from the rebar.config.

@Kozlov-V
Copy link

Kozlov-V commented Jun 9, 2014

+1 (Windows - dead))))

@davisp
Copy link
Owner

davisp commented Aug 31, 2015

Recent reports suggests windows builds are working so I'm gonna close this.

Though I will note that I think they're only working with Visual Studio or whatever that thing is called.

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