Thx to the wiki (https://gimx.fr/wiki/index.php?title=De ... on_Windows) I build gimx on my local machine. I was able to change functions mainly for debugging purposes to understand how gimx works. I could build and use gimx.exe successfully.
The next step for me is to use some of the gimx libraries (https://gimx.fr/wiki/index.php?title=Gasync) in a simple c++ demo program. I included GIMX\shared and SDL\include as additional include paths and set preprocessor defintions for WIN32. My source code is just what is demonstrated in ginput_test.c file.
In the visual studio editor my source looks good. However when I try to build a release I get errors from the compiler:
Code: Select all
1>c:\users\coder\git\gimx\shared\gimxcommon\test\handlers.c(25): error C2146: syntax error: missing ')' before identifier '__attribute__'
1>git\gimx\shared\gimxcommon\test\handlers.c(25): error C3646: '__attribute__': unknown override specifier
1>git\gimx\shared\gimxcommon\test\handlers.c(25): error C2059: syntax error: '('
1>git\gimx\shared\gimxcommon\test\handlers.c(25): error C2059: syntax error: ')'
1>git\gimx\shared\gimxcommon\test\handlers.c(25): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>git\gimx\shared\gimxcommon\test\handlers.c(27): error C2059: syntax error: ';'
1>git\gimx\shared\gimxcommon\test\handlers.c(28): error C2059: syntax error: '}'
1>gimx\shared\gimxcommon\test\handlers.c(28): error C2143: syntax error: missing ';' before '}'
1>git\gimx\shared\gimxcommon\test\handlers.c(31): error C2143: syntax error: missing ';' before '{'
How can I build gimx so I can use it as a library for my own app?
My c++ code is avaiable here: https://pastebin.com/UFnCSs62
Please guide me