<html>
<head>
<title></title>
<style type="text/css" media="screen">
body {font-family: verdana, arial, helvetica, sans-serif;font-size: 12px;padding: 5px;margin: 0;background-color: #FFF;}
p, ul, li {margin-top: 0;margin-bottom: 0;}
blockquote {margin-left: 5px;}
div.signature {color: #666;font-family: monospace; font-size: 0.9em;}
</style>
</head>
<body>
compiler: fpc 2.2.4<br />target: go32v2<br /><br />the following snippet fails compiling:<br /><br /> UNIT uxy;<br /> {<br /> FPC Ver 2.2.4<br /> Target: Go32V2<br /> Compiler Error: Forward declaration not soved "doXY(SmallInt, Smallint, Smallint, Char, Byte);"<br /> }<br /> <br /> INTERFACE<br /> <br /> procedure doXY( X, Y, Cnt: smallInt; C: Char; A: byte);<br /> <br /> IMPLEMENTATION<br /> uses graph;<br /> <br /> procedure doXY( X, Y, Cnt: smallInt; C: Char; A: byte);<br /> begin<br /> {...}<br /> end;<br /> <br /> END.<br /> <br /><br /><br />But following code snippet compiles fine (no usage of unit graph):<br /> <br /> UNIT uxy;<br /> {<br /> FPC Ver 2.2. 4<br /> Target: Go32V2 <br /> No Compiler Error<br /> }<br /> <br /> INTERFACE<br /> <br /> procedure doXY( X, Y, Cnt: smallInt; C: Char; A: byte);<br /> <br /> IMPLEMENTATION<br /> <br /> procedure doXY( X, Y, Cnt: smallInt; C: Char; A: byte);<br /> begin<br /> {...}<br /> end;<br /> <br /> END.<br /> <br /><br />Any ideas?<br />Regards Peter<br />
<div class="signature"><br /><br /><br />-- <br />Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox 3.5 -<br />sicherer, schneller und einfacher! http://portal.gmx.net/de/go/chbrowser</div></body>
</html>