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

Win32 3.01 OCaml #2767

Closed
vicuna opened this issue May 21, 2001 · 2 comments
Closed

Win32 3.01 OCaml #2767

vicuna opened this issue May 21, 2001 · 2 comments

Comments

@vicuna
Copy link

vicuna commented May 21, 2001

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

Bug description

I'm trying to use the Win32 3.01 OCaml on an NT PC. My graphics calls are
pretty simple, I only try to create one window from my main program. Is this
supported by the Win32 version? Graphics.cma and unix.cma are both in my
D:\npt-npe\ocaml\lib directory.

Also, your web site is not quite working correctly yet, ftp.inria.ftp is
not working yet.

Thanks,

Wendy

Wendy Etkind (wendy@mitre.org)
Lead Technical Staff: The MITRE Corporation
(781) 271-3217, DSN 478-1186 x3217, fax (781) 271-8689

D:\npt-npe\ocaml\wendy>set CAMLLIB=D:\npt-npe\ocaml\lib

D:\npt-npe\ocaml\wendy>ocamlc -c address.ml

D:\npt-npe\ocaml\wendy>ocamlc -c interface.ml

D:\npt-npe\ocaml\wendy>ocamlc -c router.ml

D:\npt-npe\ocaml\wendy>ocamlc -c lan.ml

D:\npt-npe\ocaml\wendy>ocamlc -c hash.ml

D:\npt-npe\ocaml\wendy>ocamlc -c draw.ml

D:\npt-npe\ocaml\wendy>ocamlc -c network.ml

D:\npt-npe\ocaml\wendy>ocamlc -c read.ml

D:\npt-npe\ocaml\wendy>ocamlc -c example.ml

D:\npt-npe\ocaml\wendy>ocamlc -o read graphics.cma unix.cma address.cmo interface.cmo router.cmo lan.cmo hash.cmo draw.cmo network.cmo read.cmo example.cmo
camlprim0.c
camlprim0.obj : error LNK2001: unresolved external symbol _gr_set_line_width
camlprim0.obj : error LNK2001: unresolved external symbol _gr_fill_poly
camlprim0.obj : error LNK2001: unresolved external symbol _gr_fill_rect
camlprim0.obj : error LNK2001: unresolved external symbol _gr_draw_string
camlprim0.obj : error LNK2001: unresolved external symbol _gr_set_color
camlprim0.obj : error LNK2001: unresolved external symbol _gr_sigio_handler
camlprim0.obj : error LNK2001: unresolved external symbol _gr_sigio_signal
camlprim0.obj : error LNK2001: unresolved external symbol _gr_close_graph
camlprim0.obj : error LNK2001: unresolved external symbol _gr_open_graph
camlprim0.obj : error LNK2001: unresolved external symbol _gr_synchronize
camlprim0.obj : error LNK2001: unresolved external symbol _gr_remember_mode
camlprim0.obj : error LNK2001: unresolved external symbol _gr_display_mode
camlprim0.obj : error LNK2001: unresolved external symbol _gr_lineto
camlprim0.obj : error LNK2001: unresolved external symbol _gr_moveto
camlprim0.obj : error LNK2001: unresolved external symbol _gr_current_x
camlprim0.obj : error LNK2001: unresolved external symbol _gr_current_y
camlprim0.obj : error LNK2001: unresolved external symbol _gr_draw_arc
camlprim0.obj : error LNK2001: unresolved external symbol _gr_fill_arc
camlprim0.obj : error LNK2001: unresolved external symbol _gr_blit_image
camlprim0.obj : error LNK2001: unresolved external symbol _gr_create_image
camlprim0.obj : error LNK2001: unresolved external symbol _gr_wait_event
camlprim0.obj : error LNK2001: unresolved external symbol _gr_set_text_size
read.exe : fatal error LNK1120: 22 unresolved externals

@vicuna
Copy link
Author

vicuna commented May 22, 2001

Comment author: administrator

I'm trying to use the Win32 3.01 OCaml on an NT PC. My graphics calls are
pretty simple, I only try to create one window from my main program. Is this
supported by the Win32 version?

Not really. The Graphics library works under the toplevel interactive
GUI, but not from standalone executables generated by ocamlc. Indeed,
it is still unclear to us whether a Win32 console application (like
those generated by ocamlc) can open a graphical window at all!

Sorry for the inconvenience.

All the best,

  • Xavier Leroy

@vicuna
Copy link
Author

vicuna commented Jan 25, 2002

Comment author: administrator

Graphics fully implemented under Win32 in 3.04

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

No branches or pull requests

1 participant