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  2012  2013  2014  2015  <20162017  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  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: Alias
From: Stefen Paul <[email protected]>
Cc: EPICS Tech Talk <[email protected]>
Date: Fri, 19 Aug 2016 11:13:54 +0530
Thanks for the info.

So in case of using dbCreateAlias(DBENTRY *pdbentry, const char *paliasName)  , what should be passed as the 'DBENTRY *pdbentry' field ?

Also it seems that we can't put alias in database while making it using VDCT  v2.6

Thanks,
Stefen


On Wed, Aug 17, 2016 at 5:10 PM, Mark Rivers <[email protected]> wrote:
> I tried using the command alias("canonicalName","aliasName") in my code.
> I also wrote #include <dbStaticLib.h> in the code.
> But when I make my application, I get the following error:
> "unresolved external symbol _alias"

The alias command is used in a database file, not in C code.

This is from the Application Developer's Guide:
http://www.aps.anl.gov/epics/base/R3-14/12-docs/AppDevGuide.pdf

Page 107:

6.14 record – Record Instance
  6.14.1 Format
    record(record_type, record_name) {
      alias(alias_name)
      field(field_name, "field_value")
      info(info_name, "info_value")
      ...
    }
    alias(record_name, alias_name)

If you want to create an alias in C then you must use this function (page 207)

long dbCreateAlias(DBENTRY *pdbentry, const char *paliasName);


Mark


________________________________
From: [email protected] [[email protected]] on behalf of Stefen Paul [[email protected]]
Sent: Tuesday, August 16, 2016 11:59 PM
To: EPICS Tech Talk
Subject: Alias

Hi All,

I am using EPICS Base version 3.14.12.4

I read that from EPICS 3.14.11 support for alias has been added.

I tried using the command alias("canonicalName","aliasName") in my code.

I also wrote #include <dbStaticLib.h> in the code.

But when I make my application, I get the following error:

"unresolved external symbol _alias"

Am I missing something here ?

Thanks,
Stefen



--
Thanks,
Stefen

Replies:
Re: Alias Ralph Lange
References:
Alias Stefen Paul
RE: Alias Mark Rivers

Navigate by Date:
Prev: Re: Andrew Johnson
Next: Re: Alias Ralph Lange
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: RE: Alias Mark Rivers
Next: Re: Alias Ralph Lange
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 19 Aug 2016 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·