question about linkage

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
banita
Posts: 29
Joined: Fri 19 Jun 2009 14:31

question about linkage

Post by banita » Thu 13 Aug 2009 21:04

I use postgresql (only example). I add (in project option) path to unidac lib but when I try run my project I get error:

"[ILINK32 Error] Fatal: Unable to open file 'POSTGRESQLUNIPROVIDER.OBJ'"

when I add:
#pragma link "pgprovider105" or #pragma link "pgprovider105.lib"
error still exist.
I must manually add pgprovider105.lib to my project and then all works fine.

Why #pragma link "pgprovider105.lib" dont work?

I use C++Builder 2007.

sory for my english

Plash
Devart Team
Posts: 2844
Joined: Wed 10 May 2006 07:09

Post by Plash » Fri 14 Aug 2009 07:35

The error does not occur if you place

#pragma link "pgprovider105.lib"

before

#pragma link "PostgreSQLUniProvider"

Post Reply