EPICS Home

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  2016  2017  2018  2019  <20202021  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  2016  2017  2018  2019  <20202021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Does IOC name have any restrictions ?
From: Hitesh Dhola via Tech-talk <tech-talk at aps.anl.gov>
To: tech-talk <tech-talk at aps.anl.gov>
Date: Tue, 23 Jun 2020 17:08:29 +0530 (IST)
Hello,

I am getting a make error in ioc generation using makeBaseApp, if I use any numeric in name "test".

I created IOC using this,

../bin/windows-x64-mingw/makeBaseApp.pl -t ioc 3test
../bin/windows-x64-mingw/makeBaseApp.pl -i -t ioc 3test

But, make fails with following error.

----------------
3test_registerRecordDeviceDriver.cpp:248:5: error: expected unqualified-id before numeric constant
  248 | int 3test_registerRecordDeviceDriver(DBBASE *pbase)
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3test_registerRecordDeviceDriver.cpp: In function 'void rrddCallFunc(const iocshArgBuf*)':
3test_registerRecordDeviceDriver.cpp:291:19: error: unable to find numeric literal operator 'operator""test_registerRecordDeviceDriver'
  291 |     iocshSetError(3test_registerRecordDeviceDriver(*iocshPpdbbase));
-------------------------

It works fine if i use non-numeric, say using 'rtest' instead of '3test' is working fine. I am working on Windows 10 and MSYS environment.

Do we have any restriction in naming convention for IOC? or this is something else ?

Regards,
Hitesh


Replies:
Re: Does IOC name have any restrictions ? Ralph Lange via Tech-talk

Navigate by Date:
Prev: Notifying systemd when IOC start is complete (plus showing progress) Konrad, Martin via Tech-talk
Next: Re: Does IOC name have any restrictions ? Ralph Lange 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  <20202021  2022  2023  2024 
Navigate by Thread:
Prev: Re: SRQ over VXI Noboru Yamamoto via Tech-talk
Next: Re: Does IOC name have any restrictions ? Ralph Lange 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  <20202021  2022  2023  2024