Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001263OCamlOCaml generalpublic2002-07-26 08:462002-07-26 15:55
Reporteradministrator 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0001263: FW: OCaml 3.04: Problem with compilation of Graphics module
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
>

----------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=koi8-r">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2650.12">
<TITLE>FW: OCaml 3.04: Problem with compilation of Graphics module</TITLE>
</HEAD>
<BODY>



<FONT SIZE=2 FACE="Arial">Dear Sirs,</FONT>



<FONT SIZE=2 FACE="Arial">I have a small problem with compilation to native code program that uses Graphics</FONT>

<FONT SIZE=2 FACE="Arial">module on Windows 2000/XP in native Win32 port of OCaml . </FONT>



<FONT SIZE=2 FACE="Arial">Let suppose that I have very small skeleton of file "a.ml"</FONT>

        <FONT SIZE=2 FACE="Arial">open Graphics;;</FONT>

        <FONT SIZE=2 FACE="Arial">let _ = open_graph " 320x200";;</FONT>



<FONT SIZE=2 FACE="Arial">When I try to compile this to nativ code with command</FONT>

        <FONT SIZE=2 FACE="Arial">ocamlopt -o o.exe Graphics.cmxa a.ml</FONT>



<FONT SIZE=2 FACE="Arial">I get the following errors</FONT>

        <FONT SIZE=2 FACE="Arial">Graphics.lib(graphics.obj) : error LNK2001: unresolved external symbol _gr_draw_arc_nat</FONT>

        <FONT SIZE=2 FACE="Arial">Graphics.lib(graphics.obj) : error LNK2001: unresolved external symbol _gr_fill_arc_nat</FONT>

        <FONT SIZE=2 FACE="Arial">o.exe : fatal error LNK1120: 2 unresolved externals</FONT>

        <FONT SIZE=2 FACE="Arial">Error during linking</FONT>



<FONT SIZE=2 FACE="Arial">Same code perfectly compilet into bytecode version with command</FONT>

        <FONT SIZE=2 FACE="Arial">ocamlc -o o.exe -custom Graphics.cma a.ml</FONT>



<FONT SIZE=2 FACE="Arial">Could be there some problems with this library or what I do wrong?</FONT>



<FONT SIZE=2 FACE="Arial">B.R.</FONT>

<FONT SIZE=2 FACE="Arial">Pavel Tishkin </FONT>



</BODY>
</HTML>
----------------
----------------
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0000991)
administrator (administrator)
2002-07-26 15:55

Fixed 2002-07-26 by XL.

- Issue History
Date Modified Username Field Change
2005-11-18 10:13 administrator New Issue


Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker