others (#15) - compile the source code using VC++ 6 (#232) - Message List

compile the source code using VC++ 6

Hello,

i need to setup the VC++ to work with pgrouting source code. can u help me in this. i tried the following:

compiling 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 for postgres

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);

}


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)