compliling postgresql
hi,
I added functions of my own along wiht their prototype in Lock.h called
InitializeLockList(), InitializeTransactionNode etc.
I get thiese errors when i try compiling postgresql using make.
ld: fatal: symbol `InitializeLockList' is multiply defined:
(file postmaster/SUBSYS.o and file storage/SUBSYS.o);
ld: fatal: symbol `InitializeTransactionNode' is multiply defined:
(file postmaster/SUBSYS.o and file storage/SUBSYS.o);
ld: fatal: symbol `addMode' is multiply defined:
(file postmaster/SUBSYS.o and file storage/SUBSYS.o);
ld: fatal: symbol `getLockTagNode' is multiply defined:
(file postmaster/SUBSYS.o and file storage/SUBSYS.o);
ld: fatal: symbol `forDebugging' is multiply defined:
(file postmaster/SUBSYS.o and file storage/SUBSYS.o);
ld: fatal: symbol `InitializeLockTagNode' is multiply defined:
(file postmaster/SUBSYS.o and file storage/SUBSYS.o);
ld: fatal: File processing errors. No output written to postgres
collect2: ld returned 1 exit status
can someone help me out here?
thanks alot
Jenny
_________________________________________________________________
STOP MORE SPAM with the new MSN 8 and get 2 months FREE*
http://join.msn.com/?page=features/junkmail
">" == nat lazy <Jenny> writes:
hi, I added functions of my own along wiht their prototype in
Lock.h called InitializeLockList(), InitializeTransactionNode
^^^^^^
can someone help me out here? thanks alot Jenny
Don't add the functions in a header file .. add the definitions in a
source module (a .c file) and place the prototypes (declarations) in a
header file.
--
Pip-pip
Sailesh
http://www.cs.berkeley.edu/~sailesh