You should not convert from .st to .c manually and then try to compile the .c. Rather you should just add the .st file to the source files in your Makefile and let the build system automatically convert the .c to .o using its rules.
Mark
Sent from my iPhone
On Aug 2, 2015, at 5:07 PM, Tasaddaq Khan <[email protected]<mailto:[email protected]>> wrote:
Hi
I converted my test.st<http://test.st> file to test.c file using snc but found following error while compiling the c file.
cc test.c -o test.o
test.c:7:21: error: seq_snc.h: No such file or directory
test.st:15<http://test.st:15>: error: expected ‘)’ before ‘seqg_env’
test.st:22<http://test.st:22>: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘seqg_event_volt_check_0_light_off’
test.st:22<http://test.st:22>: error: expected ‘)’ before ‘seqg_env’
test.st:23<http://test.st:23>: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘seqg_event_volt_check_0_light_on’
test.st:29<http://test.st:29>: error: expected ‘)’ before ‘seqg_env’
test.st:32<http://test.st:32>: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘seqg_chans’
test.st:39<http://test.st:39>: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘seqg_mask_volt_check_0_light_off’
test.st:42<http://test.st:42>: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘seqg_mask_volt_check_0_light_on’
test.st:47<http://test.st:47>: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘seqg_states_volt_check’
test.st:69<http://test.st:69>: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘seqg_statesets’
test.st:78<http://test.st:78>: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘test’
test.st:96:25: error: epicsExport.h: No such file or directory
test.st<http://test.st>: In function ‘testRegistrar’:
test.st:99<http://test.st:99>: error: ‘test’ undeclared (first use in this function)
test.st:99<http://test.st:99>: error: (Each undeclared identifier is reported only once
test.st:99<http://test.st:99>: error: for each function it appears in.)
test.st<http://test.st>: At top level:
test.st:101<http://test.st:101>: warning: data definition has no type or storage class
test.st:101<http://test.st:101>: warning: parameter names (without types) in function declaration
Any suggestion how to include the seq_snc.h in order to remove the problem. I can see seq_snl.h file in my include directory of seq-2.2.2
regards,
Tasaddaq
- Replies:
- Re: seq_snc.h: file not found Tasaddaq Khan
- References:
- seq_snc.h: file not found Tasaddaq Khan
- Navigate by Date:
- Prev:
seq_snc.h: file not found Tasaddaq Khan
- Next:
Re: seq_snc.h: file not found Tasaddaq Khan
- 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
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
seq_snc.h: file not found Tasaddaq Khan
- Next:
Re: seq_snc.h: file not found Tasaddaq Khan
- 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
2020
2021
2022
2023
2024
|