Anuradha wrote:
Thankyou for the response. whe i link the library file, it gives me the following errors.
$ gpc -L/usr/local/psql/lib -lbtrvif -DBTI_DEC_UNIX sqlnew2.pas reqsamp1.o: In function `__btrid': reqsamp1.o(.text+0x5e): undefined reference to `Handler' collect2: ld returned 1 exit status $
But a C program compiled like this works well. Can you tell me what the reason could be?
- Put the `-lbtrvif' *after* the source file on the command line. - How is the C function called? If it's `handler' (with a lower-case `h'), be sure to declare it as `asmname 'handler'' in Pascal. Otherwise, please post the declarations (C and Pascal)... Frank -- Frank Heckenbach, frank@g-n-u.de, http://fjf.gnu.de/ GPC To-Do list, latest features, fixed bugs: http://agnes.dida.physik.uni-essen.de/~gnu-pascal/todo.html