The compile.sh build script for the demo feed handler uses the compiler and link options in the table.
You can also use these as examples when compiling a custom feed handler, but are not required to use the listed compilers or settings.
The following tables list options for a production build. When compiling a debug build, add the -g option to the listed production options.
RHEL/AMD compiler option for publisher APIs
Supported compiler |
gcc version 3.4.6.20060404 (Red Hat 3.4.6-9) |
Compiler option |
-c -Wall -Werror
-fPIC
-D__STDC_LIMIT_MACROS=true
-m64 -O3 |
Link option |
-Wall -Werror -fPIC -lpthread -ldl -O3 -lpublisher
|
Solaris SPARC compiler option for publisher APIs
Supported compiler |
CC: Sun C++ 5.8 2005/10/13 |
Compiler option |
-c -errtags=yes
-KPIC -xO4
-xarch=v9 |
Link option |
-KPIC -lpthread -ldl -lsocket -lnsl -lrt -xO4
-xarch=v9
|
Solaris AMD compiler options for publisher APIs
The Solaris AMD operating system provides two supported compilers with separate compiler and link options.
Supported compiler |
CC: Sun C++ 5.8 2005/10/13 |
Compiler option |
c -errtags=yes
-KPIC -xO4 -xarch=amd64
-xmodel=medium |
Link option |
-KPIC -lpthread -ldl -lsocket -lnsl -lrt
-xO4
-xarch=amd64 -xmodel=medium
|
Supported compiler |
gcc version 3.4.6.20060404 |
Compiler option |
-fPIC
-D__STDC_LIMIT_MACROS=true
-m64 |
Link option |
-KPIC -lpthread -ldl -lsocket -lnsl -lrt |
AIX compiler options for publisher APIs
The AIX operating system provides two supported compilers with separate compiler and link options.
Supported compiler |
IBM® XL C/C++ Enterprise Edition V10.1 for AIX® |
Compiler option |
-c -D__IBM_FAST_VECTOR
-qpic=large
-qhalt=i
-qflag=w:w
-q64 -qeh=v6 -O3
-qstrict
-qtune=balanced
-qhot |
Link option |
-ldl -lpthread -qpic=large -q64 -qhalt=i -qflag=w:w -qeh=v6 -brtl -O3 -qstrict -qtune=balanced -qhot |
Supported compiler |
gcc version 3.4.6.20060404 |
Compiler option |
-fPIC
-D__STDC_LIMIT_MACROS=true
-m64 |
Link option |
-KPIC -lpthread -ldl -lsocket -lnsl -lrt |