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: Mark Rivers <[email protected]>
To: Stefen Paul <[email protected]>, EPICS Tech Talk <[email protected]>
Date: Wed, 17 Aug 2016 11:40:15 +0000
> 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


Replies:
Re: Alias Stefen Paul
References:
Alias Stefen Paul

Navigate by Date:
Prev: Support for Ametek 7270 lock-in amp edmund.warrick
Next: Re: Alias Márcio Paduan Donadio
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: Alias Stefen Paul
Next: Re: Alias Stefen Paul
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 ·