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

vs2010 build error #109

Closed
spayton opened this issue Apr 8, 2014 · 2 comments
Closed

vs2010 build error #109

spayton opened this issue Apr 8, 2014 · 2 comments

Comments

@spayton
Copy link
Contributor

spayton commented Apr 8, 2014

libWebSockets - github 8/4/14 12.42pm GMT
CMake 2.9.12.2 - default config
Visual Studio 2010 Ult
Win7 Ult x64

Both debug/Release:

3>..\lib\client.c(154): error C2143: syntax error : missing ';' before 'const'

Quickfix: wrap the 3 lines 154-156 within a scope {}

warmcat pushed a commit that referenced this issue Apr 8, 2014
Reported as making trouble on Windows by spayton

#109

Signed-off-by: Andy Green <andy.green@linaro.org>
@warmcat
Copy link
Collaborator

warmcat commented Apr 8, 2014

On 04/08/2014 02:45 PM, spayton wrote:

libWebSockets - github 8/4/14 12.42pm GMT
CMake 2.9.12.2 - default config
Visual Studio 2010 Ult
Win7 Ult x64

Both debug/Release:

3>..\lib\client.c(154): error C2143: syntax error : missing ';' before
'const'

Quickfix: wrap the 3 lines 154-156 within a scope {}

This doesn't make trouble on Linux, but the random appearance of local
vars isn't so nice, I cleaned it up and pushed it, does it help?

-Andy


Reply to this email directly or view it on GitHub
#109.

@spayton
Copy link
Contributor Author

spayton commented Apr 8, 2014

Yup, that's got it. vs2010 is much more sensitive to local var declaration than it's predecessors, especially in case blocks.

@warmcat warmcat closed this as completed Oct 13, 2015
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

1 participant