<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
<font style="font-size: 10pt;" size="2">
Dear all,<br>
<br>
<br>
<br>
I try to compile the code below to dynamic library, the problem if i
declare the variable type to anything else int32, i recieve the error
as below, any body have experience in writing functions using c<br>
<br>
i use VC++ 6.<br>
<br>
Kind regards<br>
<br>
ihab<br>
<br>
<br>
extern "C" {<br>
Datum add_one(PG_FUNCTION_ARGS) {<br>
float8 arg = PG_GETARG_FLOAT8(0);<br>
float8 arg1 = PG_GETARG_FLOAT8(1);<br>
<br>
PG_RETURN_FLOAT8(arg + arg1);<br>
}<br>
<br>
<br>
<br>
<br>
<br>
--------------------Configuration: eehab - Win32 Release--------------------<br>
Linking...<br>
Creating library Release/eehab.lib and object Release/eehab.exp<br>
eehab.obj : error LNK2001: unresolved external symbol _Float8GetDatum<br>
Release/eehab.dll : fatal error LNK1120: 1 unresolved externals<br>
Error executing link.exe.<br>
<br>
eehab.dll - 2 error(s), 0 warning(s)</font><br /><hr />check out the rest of the Windows Live™.
More than mail–Windows Live™ goes way beyond your inbox.
<a href='http://www.microsoft.com/windows/windowslive/' target='_new'>More than messages</a></body>
</html>