Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X
Hi All,
I installed ThingWorx EDGE C SDK of version 3-0-0-2317. While compiling a code with <twApi.h> header it showing error in SDK itself.
/home/new/thingworx/include/thingworx/twOSPort.h:19:11: error: #include expects "FILENAME" or <FILENAME>
19 | #include TW_OS_INCLUDE
| ^~~~~~~~~~~~~
/home/new/thingworx/twOSPort.h:54:24: error: unknown type name ‘DATETIME’
54 | char twTimeGreaterThan(DATETIME t1, DATETIME t2);
| ^~~~~~~~
/home/new/thingworx/include/thingworx/twOSPort.h:54:37: error: unknown type name ‘DATETIME’
54 | char twTimeGreaterThan(DATETIME t1, DATETIME t2);
| ^~~~~~~~
/home/new/thingworx/include/thingworx/twOSPort.h:64:21: error: unknown type name ‘DATETIME’
64 | char twTimeLessThan(DATETIME t1, DATETIME t2);
| ^~~~~~~~
/home/new/thingworx/include/thingworx/twOSPort.h:64:34: error: unknown type name ‘DATETIME’
64 | char twTimeLessThan(DATETIME t1, DATETIME t2);
| ^~~~~~~~
/home/new/thingworx/include/thingworx/twOSPort.h:74:1: error: unknown type name ‘DATETIME’
74 | DATETIME twAddMilliseconds(DATETIME t1, int32_t msec);
| ^~~~~~~~
/home/new/thingworx/include/thingworx/twOSPort.h:74:28: error: unknown type name ‘DATETIME’
74 | DATETIME twAddMilliseconds(DATETIME t1, int32_t msec);
| ^~~~~~~~
/home/new/thingworx/include/thingworx/twOSPort.h:83:1: error: unknown type name ‘DATETIME’
83 | DATETIME twGetSystemTime(char utc);
| ^~~~~~~~
/home//new/thingworx/include/thingworx/twOSPort.h:119:22: error: unknown type name ‘DATETIME’
119 | void twGetTimeString(DATETIME time, char * s, const char * format, int length, char msec, char utc);
| ^~~~~~~~
/home/new/thingworx/include/thingworx/twOSPort.h:133:1: error: unknown type name ‘TW_MUTEX’
133 | TW_MUTEX twMutex_Create();
| ^~~~~~~~
/home/new/thingworx/include/thingworx/twOSPort.h:143:21: error: unknown type name ‘TW_MUTEX’
143 | void twMutex_Delete(TW_MUTEX m);
| ^~~~~~~~
/home/new/thingworx/include/thingworx/twOSPort.h:152:19: error: unknown type name ‘TW_MUTEX’
152 | void twMutex_Lock(TW_MUTEX m);
| ^~~~~~~~
/home/new/thingworx/include/thingworx/twOSPort.h:161:21: error: unknown type name ‘TW_MUTEX’
161 | void twMutex_Unlock(TW_MUTEX m);
| ^~~~~~~~
/home/new/thingworx/include/thingworx/twOSPort.h:173:9: error: unknown type name ‘TW_SOCKET_TYPE’
173 | TW_SOCKET_TYPE sock; /**< Socket descriptor. **/
| ^~~~~~~~~~~~~~
/home/new/thingworx/include/thingworx/twOSPort.h:174:9: error: unknown type name ‘TW_ADDR_INFO’
174 | TW_ADDR_INFO addr; /**< The address to use **/
| ^~~~~~~~~~~~
/home/new/thingworx/include/thingworx/twOSPort.h:175:9: error: unknown type name ‘TW_ADDR_INFO’
175 | TW_ADDR_INFO * addrInfo; /**< #TW_ADDR_INFO struct head - use to free. **/
| ^~~~~~~~~~~~
How to rectify this error?
Thanks in Advance...
Solved! Go to Solution.