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
ExtProc library in lazarus
Re: ExtProc library in lazarus
Hello,
Please provide the error message or its screenshot.
Please provide the error message or its screenshot.
Re: ExtProc library in lazarus
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
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
Re: ExtProc library in lazarus
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.
Re: ExtProc library in lazarus
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
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
Re: ExtProc library in lazarus
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