EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: example_registerRecordDeviceDriver.cpp:238: undefined reference to `pvar_drvet_drvBPEM' error
From: "Bai Jiaoni" <[email protected]>
To: [email protected]
Date: Fri, 9 Mar 2012 10:18:19 +0800 (CST)
Hello,
When i compiler my code on epics 3.14, it report "example_registerRecordDeviceDriver.cpp:238: undefined reference to `pvar_drvet_drvBPEM'". How should I solve it? Thank 
you.

My .dbd file is as following:
device(ao,VME_IO, devAoBPEM,"BPEM")
device(waveform,VME_IO, devWfBPEM,"BPEM")
driver(drvBPEM)

My Makefile is as following:
TOP=../..

include $(TOP)/configure/CONFIG
#----------------------------------------
#  ADD MACRO DEFINITIONS AFTER THIS LINE
#=============================
# Only build for "hard" IOC's
#
#ifneq ($(findstring Host, $(VALID_BUILDS)),)
#   VALID_BUILDS = Host
#endif

#==================================================
# Build an IOC support library

LIBRARY_IOC += xxxSupport

# xxxRecord.h will be created from xxxRecord.dbd
DBDINC += xxxRecord
# install devXxxSoft.dbd into <top>/dbd
DBD += xxxSupport.dbd

# The following are compiled and added to the Support library
xxxSupport_SRCS += xxxRecord.c
xxxSupport_SRCS += devXxxSoft.c

xxxSupport_LIBS += $(EPICS_BASE_IOC_LIBS)

#=============================
# build an ioc application

PROD_IOC = example
# example.dbd will be created and installed
DBD += example.dbd

# example.dbd will be made up from these files:
example_DBD += base.dbd
example_DBD += xxxSupport.dbd
example_DBD += dbSubExample.dbd
example_DBD += exampleHello.dbd
example_DBD += BPEM.dbd

# <name>_registerRecordDeviceDriver.cpp will be created from <name>.dbd
example_SRCS += example_registerRecordDeviceDriver.cpp
example_SRCS_DEFAULT += exampleMain.cpp
example_SRCS_vxWorks += -nil-

# Add locally compiled object code
example_SRCS += dbSubExample.c
example_SRCS += exampleHello.c
example_SRCS_vxWorks += drvBPEM.c
example_SRCS_vxWorks += devBPEM.c
example_SRCS_vxWorks += universe.c
example_SRCS_vxWorks += dmaLib.c

# The following adds support from base/src/vxWorks
example_OBJS_vxWorks += $(EPICS_BASE_BIN)/vxComLibrary

example_LIBS += xxxSupport

# NOTE: To build SNL programs, SNCSEQ must be defined
# in the <top>/configure/RELEASE file

ifneq ($(SNCSEQ),)
    # This builds sncExample as a component of example
    example_SNCFLAGS += +r
    example_DBD += sncExample.dbd
    example_SRCS += sncExample.stt
    example_LIBS += seq pv

    # The following builds sncProgram as a standalone application
    PROD_HOST += sncProgram
    sncProgram_SNCFLAGS += +m
    sncProgram_SRCS += sncProgram.st
    sncProgram_LIBS += seq pv
    sncProgram_LIBS += $(EPICS_BASE_HOST_LIBS)
endif

example_LIBS += $(EPICS_BASE_IOC_LIBS)

#===========================

include $(TOP)/configure/RULES
#----------------------------------------
#  ADD RULES AFTER THIS LINE



--
Jiaoni Bai 
Institute of High Energy Physics, CAS
NO.13 of Yuquan Road Haidian, Beijing China

 

Navigate by Date:
Prev: Re: Converting driver of R3.13 Applications to R3.14 problems Andrew Johnson
Next: Cancel the question Bai Jiaoni
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: Converting driver of R3.13 Applications to R3.14 problems Andrew Johnson
Next: Cancel the question Bai Jiaoni
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 18 Nov 2013 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·