<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<STYLE>.hmmessage P {
        PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px
}
BODY.hmmessage {
        FONT-SIZE: 10pt; FONT-FAMILY: Verdana
}
</STYLE>

<META content="MSHTML 6.00.6000.16809" name=GENERATOR></HEAD>
<BODY class=hmmessage>
<DIV dir=ltr align=left><SPAN class=125123900-12032009><FONT face=Arial 
color=#0000ff>Eehab,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=125123900-12032009><FONT face=Arial 
color=#0000ff></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=125123900-12032009><FONT face=Arial 
color=#0000ff>Since this looks like a standard PostgreSQL c function, you might 
have more luck asking this question in PostgreSQL general mailing 
list.</FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma><B>From:</B> postgis-users-bounces@postgis.refractions.net 
[mailto:postgis-users-bounces@postgis.refractions.net] <B>On Behalf Of </B>eehab 
hamzeh<BR><B>Sent:</B> Wednesday, March 11, 2009 7:16 AM<BR><B>To:</B> 
postgis-users@postgis.refractions.net<BR><B>Subject:</B> [postgis-users] writing 
function using C<BR></FONT><BR></DIV>
<DIV></DIV><FONT style="FONT-SIZE: 10pt">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>