You may find that your compilation fails because the system header files required to compile a threaded program or to use the threaded interfaces cannot be found. This problem has one of several causes:
KULACK/QCSRC/MYPGM line 5: Unable to find #include file *LIBL/H(PTHREAD).
you might have one of two problems:
In order to correct these problems, do one of the following:
QSYSINC/H/PTHREAD line 48: Unable to find #include file QCPA/H(PTHREAD). QSYSINC/H/PTHREAD line 60: #error "#ifndef _MULTI_THREADED" QSYSINC/H/PTHREAD line 61: #error "#ifndef QP0Z_CPA_THREADS_PRESENT"
you have forgotten to define the _MULTI_THREADED preprocessor symbol. Use the C preprocessor statement `#define _MULTI_THREADED' in your application, or define _MULTI_THREADED on the CRTCMOD or other compile command that you use to compile your modules. Because the CPA toolkit supported threads before kernel threads being introduced on the server, if you do not define _MULTI_THREADED when compiling your C modules, the system attempts to compile your application using the CPA header files. The recommended threads model is kernel threads. You must define _MULTI_THREADED when you compile your application.
QCPA/H/PTHREAD line 171: Unable to find #include file *LIBL/H(QP0ZTYPE). QCPA/H/PTHREAD line 183: Unable to find #include file *LIBL/H(QP0ZPTHA).
you have forgotten to define the _MULTI_THREADED preprocessor symbol. Use the C preprocessor statement #define _MULTI_THREADED in your application, or define _MULTI_THREADED on the CRTCMOD or other compile command that you use to compile your modules. Because the CPA toolkit supported threads prior to kernel threads being introduced on the server0, if you do not define _MULTI_THREADED when compiling your C modules, the system attempts to compile your application using the CPA header files. The recommended threads model is kernel threads. You must define _MULTI_THREADED when you compile your application.
Top | Pthread APIs | APIs by category |