Vincent Snijders wrote:
Alex du Plessis schreef:
Hi

Could someone point me in the right direction please. I have added the unit pgcl (a postgres access unit) to a project which built and compiled perfectly without any problems. Now when I build the project , a message "error while linking" occurs and the project compilation does not complete. Since there are no other messages that could point me in the direction of where to look for the problem - I have no idea as to how to sove this.

Anybody with any ideas?


Lot's of ideas / questions, I don't know if it helps.

What fpc version are you using?

Does it compile again, if you remove the unit?

If you copy all (including hidden) messages from the messages view, does that give more information?

Can you delete the existing executable (from a previous build attempt)?

Vincent

Your questions certainly pointed me in the right direction and here was the problem:

Unit pgcl uses postgres;
unit postgres {$LINKLIB pq} and uses dlllst
unit dlllst also {$LINKLIB pq}

However under Windows it should be {$LINKLIB libpq} in both files

Also make sure the compiler can find libpq.dll (adding the directory to the compiler search path)

Thanks for the advice

_________________________________________________________________
    To unsubscribe: mail [EMAIL PROTECTED] with
               "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives



_________________________________________________________________
    To unsubscribe: mail [EMAIL PROTECTED] with
               "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to