I’m developing a new application with M2M , this application it’s beeing written in C++, I create the application with the wizard, adding support for WIP and C-GPS. Now I’m at the point of adding functionality with the WIP library.
Does this library supports C++ interface ???
If I put the call to ‘wip_netInit()’ in a C++ file (.cpp) I’m getting this:
If I put the code in a .c file everything seems to be OK.
As you can see some fields of the union ‘wip_fileInfo_entry_t’ are named as data types (u32, s32, ascii), this is not a best practice at all (don’t do it in your programs). This is causing this errors:
Ugly, for the moment I have changed the structure to:
GCC/C++ does not allow using atomic type as variable, such as int int. I think Wavecom WIP team should know GCC/G++ constrains and list as a known issues: WIP is not supported in G++. Of course, Wavecom had better rename variable u32 to a meaning name. In my personal view, u32 u32 should be renamed to u32 dog, ascii ascii to ascii cat, etc. to make more sense.