diff --git a/src/ca/CAref.html b/src/ca/CAref.html index eaee130c6..a1955c3b0 100644 --- a/src/ca/CAref.html +++ b/src/ca/CAref.html @@ -62,6 +62,15 @@ height="31" width="88">
See also Routing Restrictions on vxWorks Systems.
+An application that uses the CA client library functions described in this +document will need to include the cadef.h header files as follows.
+ +#include "cadef.h"
This header file is located at "<EPICS base>/include/". It includes +many other header files (operating system specific and otherwise), and +therefore the application must also specify "<EPICS +base>/include/os/<arch>" in its header file search path.
+ +An application that uses the CA client library functions described in this +document will need to link with the EPICS CA Client Library and also the +EPICS Common Library. The EPICS CA Client Library calls the EPICS Common +Library. The following table shows the names of these libraries on UNIX and +Windows systems.
+ +|
+
+
+ |
+ UNIX Object | +UNIX Shareable | +Windows Object | +Windows Shareable | +
|---|---|---|---|---|
| EPICS CA Client Library | +libca.a | +libca.so | +ca.lib | +ca.dll | +
|
+
+ EPICS Common Library
+ |
+ libCom.a | +libCom.so | +Com.lib | +Com.dll | +
The above libraries are located in "<EPICS +base>/lib/<architechture>".
+ +If you do not use the EPICS build environemnt (layered make files) then it +may be helpful to run one of the EPICS make files and watch the compile/link +lines. This may be the simplest way to capture the latest system and compiler +specific options required by your build environment. I have included some +snapshots of typical build lines below, but expect some risk of this +information becoming dated.
+ +/usr/bin/gcc -c -D_POSIX_C_SOURCE=199506L -D_POSIX_THREADS
+-D_XOPEN_SOURCE=500 -DOSITHREAD_USE_DEFAULT_STACK -D_X86_ -DUNIX
+-D_BSD_SOURCE -Dlinux -D_REENTRANT -ansi -O3 -Wall -I. -I..
+-I../../../include/os/Linux -I../../../include ../acctst.c
/usr/bin/g++ -o acctst
+-L/home/user/epicsR3.14/epics/base/lib/linux-x86/
+-Wl,-rpath,/mnt/bogart_home/hill/epicsR3.14/epics/base/lib/linux-x86
+acctstMain.o acctst.o -lca -lCom
/opt/SUNWspro/bin/cc -c -D_POSIX_C_SOURCE=199506L
+-D_XOPEN_SOURCE=500 -DOSITHREAD_USE_DEFAULT_STACK -DUNIX -DSOLARIS=9 -mt
+-D__EXTENSIONS__ -Xc -v -xO4 -I. -I.. -I./../../../include/os/solaris
+-I./../../../include ../acctst.c
/opt/SUNWspro/bin/CC -o acctst
+-L/home/phoebus1/JHILL/epics/base/lib/solaris-sparc/ -mt -z ignore -z
+combreloc -z lazyload -R/home/disk1/user/epics/base/lib/solaris-sparc
+acctstMain.o acctst.o -lca -lCom
cl -c /nologo /D__STDC__=0 /Ox /GL /W3 /w44355 /MD -I. -I..
+-I..\\..\\..\\include\\os\\WIN32 -I..\\..\\..\\include ..\\acctst.c
link -nologo /LTCG /incremental:no /opt:ref /release /version:3.14
+-out:acctst.exe acctstMain.obj acctst.obj
+d:/user/R3.14.clean/epics/base/lib/WIN32-x86/ca.lib
+d:/user/R3.14.clean/epics/base/lib/WIN32-x86/
/usr/local/xcomp/ppc/bin/ccppc -c -D_POSIX_SOURCE -DCPU=PPC603
+-DvxWorks -include /home/vx/tornado20/target/h/vxWorks.h -ansi -O3 -Wall
+-mcpu=603 -mstrict-align -fno-builtin -I. -I.. -I../../../include/os/vxWorks
+-I../../../include -I/home/vx/tornado20/target/h ../acctst.c
Contributions gratefully accepted.
+