On 9/6/23 10:03, 顾月良 via Tech-talk wrote:
when I compiled the above source file and run the executable, the program complained in the routine of dbCreateRecord as follows:
call dbCreateRecord ...
*** Did you run x_RegisterRecordDeviceDriver(pdbbase) yet? ***
dbAllocRecord(EventRecord) with event rec_size = 0
call dbCreateRecord completed!
what should I do in my source file to solve this problem? Thanks!
dbStaticLib is not so far a generic .db file parser.
It must have a full database definition. (it has no
abstract syntax tree)
You need to compile in, and then run, some RRDD function.
If you are working only with Base record types, then you
could imply use base.dbd. eg. in your Makefile do what
is normally done when building an IOC executable.
myprod_DBD += base.dbd
myprod_SRC += myprod_registerRecordDeviceDriver.cpp
Then:
dbLoadDatabase("myprod.dbd", ...)
myprod_registerRecordDeviceDriver(pdbbase)
- References:
- Static Database Access 顾月良 via Tech-talk
- Navigate by Date:
- Prev:
Re: EPICS try to compile on Windows: module machine type 'x86' conflicts with target machine type 'x64' Solved Heinz Junkes via Tech-talk
- Next:
Re: 'CAS-client' failed in ../../../src/ioc/db/dbEvent.c line 781 Michael Davidsaver via Tech-talk
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
<2023>
2024
- Navigate by Thread:
- Prev:
Static Database Access 顾月良 via Tech-talk
- Next:
Parse multiple waveforms in stream device Abdalla Ahmad via Tech-talk
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
<2023>
2024
|