Experimental Physics and
directions in the Makefile, and I seem to be one bit of directions short in either way.
If I build it as a component of my application, then how do I run it?
For this, I uncomment these lines in the Makefile
ESG_SRCS += sncExample.stt
ESG_LIBS += seq pv
(my application is ESG)
and get things to build, but then after I run st.cmd and am at the "epics>" prompt of iocsh,
what command do I give to run the sequence?
None of seq, sncExample, seqShow,... work. They just give me a "Command Not Found" message.
"nm" verifies that the sncExample symbol is there, along with some related othes
0804c020 d seqChan
0804c0a0 d seqSS
0804c0c0 D sncExample
0804af54 T sncExampleRegistrar
0804a73c T _start
0804c060 d state_ss1
If I alter the Makefile and make it standalone, I get a complaint that there is no "main()"
routine, as shown below. Where do I pick up a main() from?
make -C O.linux-x86 -f ../Makefile TOP=../../.. T_A=linux-x86 install
make: Entering directory `/mnt/disk1/p/epics/support/agilentsg/ESGApp/src/O.linux-x86'
/usr/bin/g++ -o sncExample -L/p/epics/support/seq/lib/linux-x86/ -L/p/epics/v3_14_8_f2/lib/linux-x86/ -Wl,-rpath,/mnt/disk1/p/epics/support/agilentsg/lib/linux-x86 -Wl,-rpath,/p/epics/support/seq/lib/linux-x86 -Wl,-rpath,/p/epics/support/asyn/4-6/lib/linux-x86 -Wl,-rpath,/p/epics/v3_14_8_f2/lib/linux-x86 sncExample.o -lseq -lpv -lcas -lgdd -liocsh -lasHost -ldbStaticHost -lregistryIoc -lca -lCom
/usr/lib/gcc-lib/i386-redhat-linux/3.2.3/../../../crt1.o(.text+0x18): In function `_start':
: undefined reference to `main'
collect2: ld returned 1 exit status
make: *** [sncExample] Error 1
|ANJ, 02 Sep 2010||
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·