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

FW: OCaml 3.04: Problem with compilation of Graphics module #3461

Closed
vicuna opened this issue Jul 26, 2002 · 1 comment
Closed

FW: OCaml 3.04: Problem with compilation of Graphics module #3461

vicuna opened this issue Jul 26, 2002 · 1 comment
Labels

Comments

@vicuna
Copy link

vicuna commented Jul 26, 2002

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

Bug description

Dear Sirs,

I have a small problem with compilation to native code program that uses
Graphics
module on Windows 2000/XP in native Win32 port of OCaml .

Let suppose that I have very small skeleton of file "a.ml"
open Graphics;;
let _ = open_graph " 320x200";;

When I try to compile this to nativ code with command
ocamlopt -o o.exe Graphics.cmxa a.ml

I get the following errors
Graphics.lib(graphics.obj) : error LNK2001: unresolved external
symbol _gr_draw_arc_nat
Graphics.lib(graphics.obj) : error LNK2001: unresolved external
symbol _gr_fill_arc_nat
o.exe : fatal error LNK1120: 2 unresolved externals
Error during linking

Same code perfectly compilet into bytecode version with command
ocamlc -o o.exe -custom Graphics.cma a.ml

Could be there some problems with this library or what I do wrong?

B.R.
Pavel Tishkin


<TITLE>FW: OCaml 3.04: Problem with compilation of Graphics module</TITLE>

Dear Sirs,

I have a small problem with compilation to native code program that uses Graphics
module on Windows 2000/XP in native Win32 port of OCaml .

Let suppose that I have very small skeleton of file "a.ml"
        open Graphics;;
        let _ = open_graph " 320x200";;

When I try to compile this to nativ code with command
        ocamlopt -o o.exe Graphics.cmxa a.ml

I get the following errors
        Graphics.lib(graphics.obj) : error LNK2001: unresolved external symbol _gr_draw_arc_nat
        Graphics.lib(graphics.obj) : error LNK2001: unresolved external symbol _gr_fill_arc_nat
        o.exe : fatal error LNK1120: 2 unresolved externals
        Error during linking

Same code perfectly compilet into bytecode version with command
        ocamlc -o o.exe -custom Graphics.cma a.ml

Could be there some problems with this library or what I do wrong?

B.R.
Pavel Tishkin

---------------- ----------------
@vicuna
Copy link
Author

vicuna commented Jul 26, 2002

Comment author: administrator

Fixed 2002-07-26 by XL.

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