EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  <19971998  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  Index 1994  1995  1996  <19971998  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 
<== Date ==> <== Thread ==>

Subject: Building a list of Channel ID's
From: Andy Foster <[email protected]>
To: Epics Questions <[email protected]>
Cc: Nick Dillon <[email protected]>
Date: Wed, 2 Apr 1997 10:42:43 +0100 (BST)
I am trying to write a program which builds a list of the
channel id's for certain fields in a particular type of record
in an active database.

I can see how do to this using a program similar to
dbDumpRecords (in the IOC developers guide) and using the
"ca_search" routine from the CA library. 

However, when including both "dbStaticLib.h" and "cadef.h" in the
same file, I get lots of redefinition warnings and the code does
not compile. I got round this by creating separate files for each
routine in my program. Should I need to do this? What am I doing wrong?
I am using 3.12.2.

The program below demonstrates the problem:

#include <vxWorks.h>
#include <dbStaticLib.h>
#include <cadef.h>

void test(void)
{
        printf ("Hello world\n");
}

which I tried to compile with:

/home/ajf/vw5.2/gnu/solaris.68k/bin/cc68k -B/home/ajf/vw5.2/gnu/solaris.68k/lib/gcc-lib/ 
-nostdinc   -DCPU=MC68040 -m68040 -DCPU_FAMILY=MC680X0  -ansi -Wall -pedantic  
-I. -I.. -I/home/ajf/ttt/./include/rec -I/home/ajf/ttt/./include 
-I/home/ajf/ttt/epics/base/include -I/home/ajf/ttt/epics/extensions/include 
-I/home/ajf/vw5.2/h -DvxWorks -DV5_vxWorks  -c ../test.c

Cheers,

Andy

===================================================================================
Andy Foster
Royal Greenwich Observatory	Tel:       44 (0)1223 374899 (direct)
Madingley Road			Fax:       44 (0)1223 374700
Cambridge			E-mail:    [email protected]
CB3 0HA				Home Page: http://www.ast.cam.ac.uk/~ajf
UK



Replies:
Re: Building a list of Channel ID's Marty Kraimer

Navigate by Date:
Prev: SOSH97 - Second Announcement and Preliminary Program Rolf Keitel
Next: cdev & CORBA Peregrine McGehee
Index: 1994  1995  1996  <19971998  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: SOSH97 - Second Announcement and Preliminary Program Rolf Keitel
Next: Re: Building a list of Channel ID's Marty Kraimer
Index: 1994  1995  1996  <19971998  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 
ANJ, 10 Aug 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·