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

Current CVS does not compile under Windows #2503

Closed
vicuna opened this issue Apr 25, 2004 · 2 comments
Closed

Current CVS does not compile under Windows #2503

vicuna opened this issue Apr 25, 2004 · 2 comments
Labels

Comments

@vicuna
Copy link

vicuna commented Apr 25, 2004

Original bug ID: 2503
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)

Bug description

Full_Name: Dmitry Bely
Version: CVS
OS: Windows 2000
Submission from: d028.p8.col.ru (212.248.4.28)

Here are the details:

make[1]: Entering directory
`/cygdrive/c/Work/Ocaml/caml-cvs/ocaml/otherlibs/win32unix'
cl /nologo /Ox /MD -DCAML_DLL -I../../byterun -I../unix -c gethost.c
gethost.c
gethost.c(54) : warning C4047: 'function' : 'unsigned int ' differs in levels of
indirection from 'struct in_addr *'
gethost.c(54) : warning C4024: 'alloc_inet_addr' : different types for formal
and actual parameter 1
gethost.c(85) : error C2115: 'initializing' : incompatible types
make[1]: *** [gethost.d.obj] Error 2

[...]

make[1]: Entering directory
/cygdrive/c/Work/Ocaml/caml-cvs/ocaml/otherlibs/win32graph' link /nologo /dll /out:dllgraphics.dll /implib:tmp.lib open.d.obj draw.d.obj dib.d.obj ../../byterun/ocamlrun.lib kernel32.lib gdi32.lib user32.lib Creating library tmp.lib and object tmp.exp draw.d.obj : error LNK2001: unresolved external symbol _gr_draw_text dllgraphics.dll : fatal error LNK1120: 1 unresolved externals make[1]: *** [dllgraphics.dll] Error 96 make[1]: Leaving directory /cygdrive/c/Work/Ocaml/caml-cvs/ocaml/otherlibs/win32graph'

The latter error is because "caml_" prefix is not used there it should to:

draw.c:CAMLprim value caml_gr_draw_text(value text,value x)
draw.c: gr_draw_text((value)str, 1);
draw.c: gr_draw_text(str, string_length(str));

BTW, why make process does not stop immediately after the error?

@vicuna
Copy link
Author

vicuna commented Apr 27, 2004

Comment author: administrator

Should be fixed now. Thanks for the report.

  • Xavier Leroy

@vicuna
Copy link
Author

vicuna commented Apr 27, 2004

Comment author: administrator

Fixed 2004-04-27 by XL

@vicuna vicuna closed this as completed Apr 27, 2004
@vicuna vicuna added the bug label Mar 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant