ExtProc library in lazarus

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
acsaba
Posts: 5
Joined: Wed 15 Jul 2009 19:54

ExtProc library in lazarus

Post by acsaba » Wed 16 Jul 2014 20:53

Hi!

I've developed an external library in Delphi. I tried to build it with lazarus using the latest trial version. It failed with identifier not found for the OCI related types and methods. OraCall and the other units have been added to the project. ODAC installed successfully into lazarus. What is the problem ? Is it possible that I need "Professional Edition With Source Code" to build and external library ? I would like to know if it is working because i would like to convert the whole system to lazarus.

Thanks

Csaba

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: ExtProc library in lazarus

Post by AlexP » Fri 18 Jul 2014 10:05

Hello,

Please provide the error message or its screenshot.

acsaba
Posts: 5
Joined: Wed 15 Jul 2009 19:54

Re: ExtProc library in lazarus

Post by acsaba » Fri 10 Jul 2020 17:56

Hi!

I've tried to compile the extproc demo found in the help using ODAC 11.2, lazarus 2.0.8, fpc 3.0.4 but it has failed:

c:\DVLPR\ODACEXP>fpc project1.lpr -FuC:\DVLPR\LIB\ODAC\lib\x86_64-win64\
Free Pascal Compiler version 3.0.4 [2020/04/11] for x86_64
Copyright (c) 1993-2017 by Florian Klaempfl and others
Target OS: Win64 for x64
Compiling project1.lpr
Compiling unit1.pas
project1.lpr(25,5) Error: Identifier not found "Check"
project1.lpr(25,11) Error: Identifier not found "OCIExtProcGetEnv"
project1.lpr(29,45) Warning: Local variable "hSvcCtx" does not seem to be initialized
project1.lpr(51,7) Error: Identifier not found "OCIExtProcRaiseExcpWithMsg"
project1.lpr(53,7) Error: Identifier not found "OCIExtProcRaiseExcpWithMsg"
project1.lpr(62,3) Error: Identifier not found "InitOCI"
project1.lpr(65,1) Fatal: There were 5 errors compiling module, stopping
Fatal: Compilation aborted
Error: C:\lazarus\fpc\3.0.4\bin\x86_64-win64\ppcx64.exe returned an error exitcode

Then I tried with Delphi 10.3

and failed again with:

[dcc64 Error] Project1.dpr(36): E2003 Undeclared identifier: 'Check'
[dcc64 Error] Project1.dpr(62): E2003 Undeclared identifier: 'OCIExtProcRaiseExcpWithMsg'
[dcc64 Error] Project1.dpr(73): E2003 Undeclared identifier: 'InitOCI'

Please help because I am converting my app to 64 bit version but I am not able to build.
I will purchase to professional with source code version but first i would like to build a working demo.

Please help.

br,

Csaba

MaximG
Devart Team
Posts: 1822
Joined: Mon 06 Jul 2015 11:34

Re: ExtProc library in lazarus

Post by MaximG » Wed 15 Jul 2020 16:10

What demo project do you mean? ODAC Demo doesn't contain a project named Project1. What is the bitness of Lazarus in your system? To compile projects for Win64, you should use Lazarus x64. Note that to use our components in Lazarus, you need ODAC Professsional.

acsaba
Posts: 5
Joined: Wed 15 Jul 2009 19:54

Re: ExtProc library in lazarus

Post by acsaba » Tue 21 Jul 2020 13:28

Hi Maxim!

Yes you are right. I've made a few non important modification against your demo found here: https://www.devart.com/odac/docs/external_proc.htm (also found in the help file...)
You can try the original version.

I've used a 64 bit version of lazarus according to the compatibility notes:

https://sourceforge.net/projects/lazaru ... e/download

The error messages again:

Error: Identifier not found "Check"
Error: Identifier not found "OCIExtProcGetEnv"
Warning: Local variable "hSvcCtx" does not seem to be initialized
Error: Identifier not found "OCIExtProcRaiseExcpWithMsg"
Error: Identifier not found "InitOCI"

Please help me because I can not move on without your help.

br,

Csaba

MaximG
Devart Team
Posts: 1822
Joined: Mon 06 Jul 2015 11:34

Re: ExtProc library in lazarus

Post by MaximG » Mon 27 Jul 2020 16:16

The demo in our documentation is outdated. We'll updated it in the next version of our product, which we're working on currently. As a temporary solution, we can send you an updated version of the demo project if you send us a request through the contact form: https://www.devart.com/company/contactform.html

Post Reply