[fpc-devel] ODBC
Michael Van Canneyt
michael at freepascal.org
Thu Jan 14 16:07:53 CET 2010
On Thu, 14 Jan 2010, Jonas Maebe wrote:
>
> On 12 Jan 2010, at 19:12, Thomas Nelson wrote:
>
>> I seem to have come across a minor problem and don’t know how to fix it.
>>
>> Utilizing the \examples\odbc\testodbc.pp module with FPC 2.2.4 everything compiles fine
>>
>> When I upgraded to FPC 2.4.0 I get an error message (please see attached screen shot)
>>
>> Which says “Import Library not found for ODBC” – this results in a fatal error.
>
> Try using the odbcsqldyn unit instead of the odbcsql unit. In r13495, a {$linklib odbc} statement was added for the latter unit, which presumably requires the presence of an import library on Windows.
Indeed.
If you do, do not forget to call
InitialiseODBC;
before you do anything ODBC related.
Michael.
More information about the fpc-devel
mailing list