Re: [GENERAL] c function - undefined symbols

2008-12-10 Thread Tom Lane
Steffn <[EMAIL PROTECTED]> writes: > Thanks for your reply. Yes, thats also my suspicion. But what library to > include? There is no library to include --- you need to be building *your* code as a library that can be loaded into the Postgres backend, which will supply the missing function. This

Re: [GENERAL] c function - undefined symbols

2008-12-10 Thread Albe Laurenz
Steffn wrote: > I am currently trying my first steps in writing my own functions in C. I > read through the documentation and tried the most simple examples as shown in > . Sadly > this was already the point where I stumbled. I luckily comp

Re: [GENERAL] c function - undefined symbols

2008-12-10 Thread Quan Zongliang
> I added /Library/PostgreSQL/8.3/lib/** to my library search path, Try to add "-L/PostgreSQL/8.3/lib -lpg" options to linker's command line. You can get details with "ld --help". Good luck. --- Quan Zongliang [EMAIL PROTECTED] CIT Japan: http://www.c

Re: [GENERAL] c function - undefined symbols

2008-12-10 Thread Steffn
Hi! Thanks for your reply. Yes, thats also my suspicion. But what library to include? I added /Library/PostgreSQL/8.3/lib/** to my library search path, but it won't help. If I knew which library I have to add, I think I can figure out how to properly configure my build settings. Couldn't find

Re: [GENERAL] c function - undefined symbols

2008-12-10 Thread Richard Huxton
Steffn wrote: > Undefined symbols: > "_Float8GetDatum", referenced from: >_add_one_float8 in foo.o > ld: symbol(s) not found > collect2: ld returned 1 exit status > > Following the documentation I only added > "/Library/PostgreSQL/8.3/include/**" to my header search path. What else > do I need

[GENERAL] c function - undefined symbols

2008-12-10 Thread Steffn
I already asked this question on the psql-novice list, but didn't get any reply. I am aware that this is probably a basic question and hope someone here can point me in the right direction! Hi! I am currently trying my first steps in writing my own functions in C. I read through the documenta