- Messages
- 1,040
- Country

Hi Everyone! Is there an area in the forum to post MSFS2020 WASM C++ development questions? I couldn't find one, so I am posting here, as it is still SimConnect related.
I have a few variables in my header file “module.h”, like this:
However, the compiler keeps giving me “duplicate symbol” error on WPSent:
and is fine with the enum. I also tried
but that produces the same error. Is WASM ignoring preprocessor commands for certain variables or am I missing something? For now, I am resorting to using externs in my source files, but that is really annoying. Any thoughts on how to address this?
I have a few variables in my header file “module.h”, like this:
Code:
#ifndef __MODULE__H
#define __MODULE__H
bool WPSent;
enum INPUT_ID {
INPUT_ZX,
};
...
#endif
Code:
wasm-ld : error : duplicate symbol: WPSent
Code:
#pragma once



