Eehab, Since this looks like a standard PostgreSQL c function, you might have more luck asking this question in PostgreSQL general mailing list.
_____ From: [email protected] [mailto:[email protected]] On Behalf Of eehab hamzeh Sent: Wednesday, March 11, 2009 7:16 AM To: [email protected] Subject: [postgis-users] writing function using C Dear all, 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 i use VC++ 6. Kind regards ihab extern "C" { Datum add_one(PG_FUNCTION_ARGS) { float8 arg = PG_GETARG_FLOAT8(0); float8 arg1 = PG_GETARG_FLOAT8(1); PG_RETURN_FLOAT8(arg + arg1); } --------------------Configuration: eehab - Win32 Release-------------------- Linking... Creating library Release/eehab.lib and object Release/eehab.exp eehab.obj : error LNK2001: unresolved external symbol _Float8GetDatum Release/eehab.dll : fatal error LNK1120: 1 unresolved externals Error executing link.exe. eehab.dll - 2 error(s), 0 warning(s) _____ check out the rest of the Windows LiveT. More than mail-Windows LiveT goes way beyond your inbox. More than messages <http://www.microsoft.com/windows/windowslive/>
_______________________________________________ postgis-users mailing list [email protected] http://postgis.refractions.net/mailman/listinfo/postgis-users
