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

Ocaml 3.10.1 doesn't compile with MSVC under Windows #4483

vicuna opened this Issue Jan 20, 2008 · 1 comment


None yet
1 participant
Copy link

vicuna commented Jan 20, 2008

Original bug ID: 4483
Reporter: db
Status: closed (set by @damiendoligez on 2008-01-22T11:07:48Z)
Resolution: fixed
Priority: normal
Severity: major
Version: 3.10.1
Fixed in version: 3.10+dev
Category: ~DO NOT USE (was: OCaml general)
Duplicate of: #4480

Bug description

make[1]: Entering directory `/cygdrive/d/Work/ocaml/ocaml-3.10.1/byterun'
lms/lib"' /Ox /MD -DCAML_DLL -c finalise.c
finalise.c(89) : error C2143: syntax error : missing ';' before 'type'
finalise.c(90) : error C2065: 'fv' : undeclared identifier
make[1]: *** [finalise.d.obj] Error 2

This is because you depend on GCC entension that (as well ac C++) allows a variable definition to appear anywhere in the block. Standard ANSI C which MSVC follows just prohibits that.


This comment has been minimized.

Copy link
Collaborator Author

vicuna commented Jan 22, 2008

Comment author: @damiendoligez

fixed in 3.10.2+dev1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.