Re: [GENERAL] Trying to make functions in 'C'

1999-05-16 Thread Anatoly K. Lasareff
> "fb" == fabian baena <[EMAIL PROTECTED]> writes: fb> I'm tying to learn how to make function in 'C'. fb> I'm trying to compile a program I made in 'C'. fb> The command I gave were: fb> % gcc -fPIC -c addone.c -I/usr/local/pgsql/include fb> % ld -G -Bdynamic -o addone.so addone.o fb>

Re: [GENERAL] Trying to make functions in 'C'

1999-05-16 Thread selkovjr
> I'm tying to learn how to make function in 'C'. > I'm trying to compile a program I made in 'C'. > The command I gave were: > > % gcc -fPIC -c addone.c -I/usr/local/pgsql/include > % ld -G -Bdynamic -o addone.so addone.o > > and created the function in postgres like this: > > CREATE

[GENERAL] Trying to make functions in 'C'

1999-05-16 Thread fabian baena
I'm tying to learn how to make function in 'C'. I'm trying to compile a program I made in 'C'. The command I gave were: % gcc -fPIC -c addone.c -I/usr/local/pgsql/include % ld -G -Bdynamic -o addone.so addone.o and created the function in postgres like this: CREATE FUNCTION add_one(int