cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X

ThingWorx C SDK compiling errors

Akj7579
13-Aquamarine

ThingWorx C SDK compiling errors

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...

 

 

ACCEPTED SOLUTION

Accepted Solutions
slangley
23-Emerald II
(To:Akj7579)

Hi @Akj7579.

 

These sound like syntax errors.  It would be a good idea to check the steam sensor example included with the download to determine where the misconfiguration is.

 

The C SDK Help Center may also be helpful.

 

Regards.

 

--Sharon

View solution in original post

1 REPLY 1
slangley
23-Emerald II
(To:Akj7579)

Hi @Akj7579.

 

These sound like syntax errors.  It would be a good idea to check the steam sensor example included with the download to determine where the misconfiguration is.

 

The C SDK Help Center may also be helpful.

 

Regards.

 

--Sharon

Announcements


Top Tags