You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
----------------
----------------
The text was updated successfully, but these errors were encountered:
Original bug ID: 1263
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)
Bug description
<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
The text was updated successfully, but these errors were encountered: