C++ Build Errors - OpenAT Headers

Hi

I’ve just migrated a C app’ to C++. However there seems to be a problem with the OpenAT headers…

**** Internal Builder is used for build               ****

C:\OpenAT\PackagesRegistry\com.wavecom.openat.ide.ebs.armelfgcc.tools\1.0.1\win32\gcc\bin\arm-elf-g++.exe 
-D__arm 
-D__GNU_GCC__ 
-D__OAT_API_VERSION__=630 
-D__WIP_PLUGIN_VERSION__=510 
-IC:\OpenAT\PackagesRegistry/com.wavecom.openat.ide.spm.lib.os.model/6.30.0.00/ADL/basic 
-IC:\OpenAT\PackagesRegistry/com.wavecom.openat.ide.spm.lib.os.model/6.30.0.00/ADL/itf 
-IC:\OpenAT\PackagesRegistry/com.wavecom.openat.ide.spm.lib.plugin.model.WIP/5.10.0.2050/WIP/itf 
-I 
-IC:\WavecomProjects\******\Current\inc 
-O3 
-Os 
-g 
-ggdb3 
-Wall 
-c 
-fshort-enums 
-fdollars-in-identifiers 
-nostartfiles 
-fno-strict-aliasing 
-fno-common 
-fomit-frame-pointer 
-mthumb-interwork 
-mthumb 
-march=armv5te 
-msoft-float 
-mfpu=fpa 
-mapcs 
-mno-apcs
-stack-check 
-osrc\StatusLed.o 
..\src\StatusLed.cpp


C:/OpenAT/PackagesRegistry/com.wavecom.openat.ide.spm.lib.plugin.model.WIP/5.10.0.2050/WIP/itf/wip_file.h:76: error: declaration of 'u32 wip_fileInfo_t::wip_fileInfo_entry_t::u32'

C:/OpenAT/PackagesRegistry/com.wavecom.openat.ide.spm.lib.os.model/6.30.0.00/ADL/basic/wm_types.h:42: error: changes meaning of 'u32' from 'typedef uint32_t u32'

C:/OpenAT/PackagesRegistry/com.wavecom.openat.ide.spm.lib.plugin.model.WIP/5.10.0.2050/WIP/itf/wip_file.h:76: error: declaration of 's32 wip_fileInfo_t::wip_fileInfo_entry_t::s32'

C:/OpenAT/PackagesRegistry/com.wavecom.openat.ide.spm.lib.os.model/6.30.0.00/ADL/basic/wm_types.h:43: error: changes meaning of 's32' from 'typedef int32_t s32'

C:/OpenAT/PackagesRegistry/com.wavecom.openat.ide.spm.lib.plugin.model.WIP/5.10.0.2050/WIP/itf/wip_file.h:77: error: declaration of 'ascii* wip_fileInfo_t::wip_fileInfo_entry_t::ascii'

C:/OpenAT/PackagesRegistry/com.wavecom.openat.ide.spm.lib.os.model/6.30.0.00/ADL/basic/wm_types.h:106: error: changes meaning of 'ascii' from 'typedef char ascii'

Am I doing something wrong?

can you add a sample code for application you are trying to compile?

have you included the OS headers with extern “C” prefix?

See:

viewtopic.php?f=78&t=4201&p=16652#p16626

viewtopic.php?f=78&t=3082&p=12149&hilit=extern#p12149

Sorted - cheers :smiley:

Those links are broken - they’re now:

Previously noted: Disable posting in the old forums! - #4 by awneil

What are Sierra Wireless up to :question: :exclamation: :open_mouth: :angry: :unamused: