I'm trying to compile the agent in BASH for Windows 10. I can get it to compile in my Ubuntu VM, but I would like to develop in windows. I don't want to shift around source files, exes, etc. Ideally, I was hoping to code in Visual Studio in Windows - but I suppose it'd be ok to compile with BASH (going to the mounted windows drive with my source). Any suggestions on developing in Windows would be appreciated.
Entering directory '/mnt/c/Users/Demetri/source/repos/wazuh/src'
CC wazuh_db/schema_agents.o
<stdin>:1:33: warning: missing terminating " character
<stdin>:1:1: error: missing terminating " character
<stdin>:2:4: error: ‘SQL’ undeclared here (not in a function)
<stdin>:2:8: error: expected ‘,’ or ‘;’ before ‘Schema’
<stdin>:3:36: error: stray ‘@’ in program
<stdin>:12:40: warning: multi-character character constant [-Wmultichar]
<stdin>:12:48: warning: character constant too long for its type
<stdin>:15:1: error: unknown type name ‘CREATE’
<stdin>:15:15: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘INDEX’
<stdin>:15:15: error: unknown type name ‘INDEX’
<stdin>:17:1: error: unknown type name ‘CREATE’
<stdin>:17:14: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘IF’
<stdin>:17:14: error: unknown type name ‘IF’
<stdin>:20:40: warning: character constant too long for its type
<stdin>:20:49: warning: character constant too long for its type
<stdin>:20:61: warning: character constant too long for its type
<stdin>:20:72: warning: character constant too long for its type
<stdin>:34:1: error: unknown type name ‘CREATE’
<stdin>:34:14: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘IF’
<stdin>:34:14: error: unknown type name ‘IF’
<stdin>:35:1: error: unknown type name ‘CREATE’
<stdin>:35:14: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘IF’
<stdin>:35:14: error: unknown type name ‘IF’
<stdin>:36:1: error: unknown type name ‘CREATE’
<stdin>:36:14: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘IF’
<stdin>:36:14: error: unknown type name ‘IF’
<stdin>:37:1: error: unknown type name ‘CREATE’
<stdin>:37:14: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘IF’
<stdin>:37:14: error: unknown type name ‘IF’
<stdin>:38:1: error: unknown type name ‘CREATE’
<stdin>:38:14: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘IF’
<stdin>:38:14: error: unknown type name ‘IF’
<stdin>:40:1: error: unknown type name ‘CREATE’
<stdin>:40:14: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘IF’
<stdin>:40:14: error: unknown type name ‘IF’
<stdin>:42:40: warning: multi-character character constant [-Wmultichar]
<stdin>:42:48: warning: character constant too long for its type
<stdin>:43:45: warning: multi-character character constant [-Wmultichar]
<stdin>:43:51: warning: multi-character character constant [-Wmultichar]
<stdin>:57:1: error: unknown type name ‘CREATE’
<stdin>:57:14: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘IF’
<stdin>:57:14: error: unknown type name ‘IF’
<stdin>:66:1: error: unknown type name ‘CREATE’
<stdin>:66:14: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘IF’
<stdin>:66:14: error: unknown type name ‘IF’
<stdin>:67:1: error: unknown type name ‘CREATE’
<stdin>:67:14: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘IF’
<stdin>:67:14: error: unknown type name ‘IF’
<stdin>:69:1: error: unknown type name ‘PRAGMA’
<stdin>:69:21: error: ‘WAL’ undeclared here (not in a function)
<stdin>:71:1: error: unknown type name ‘CREATE’
<stdin>:71:14: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘IF’
<stdin>:71:14: error: unknown type name ‘IF’
<stdin>:77:40: warning: character constant too long for its type
<stdin>:77:51: warning: character constant too long for its type
<stdin>:77:63: warning: character constant too long for its type
<stdin>:77:74: warning: character constant too long for its type
<stdin>:77:92: warning: character constant too long for its type
<stdin>:80:1: error: unknown type name ‘CREATE’
<stdin>:80:14: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘IF’
<stdin>:80:14: error: unknown type name ‘IF’
<stdin>:98:1: error: unknown type name ‘CREATE’
<stdin>:98:14: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘IF’
<stdin>:98:14: error: unknown type name ‘IF’
<stdin>:100:1: error: unknown type name ‘CREATE’
<stdin>:100:14: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘IF’
<stdin>:100:14: error: unknown type name ‘IF’
<stdin>:118:1: error: unknown type name ‘CREATE’
<stdin>:118:14: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘IF’
<stdin>:118:14: error: unknown type name ‘IF’
<stdin>:130:1: error: unknown type name ‘CREATE’
<stdin>:130:14: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘IF’
<stdin>:130:14: error: unknown type name ‘IF’
<stdin>:146:1: error: unknown type name ‘CREATE’
<stdin>:146:14: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘IF’
<stdin>:146:14: error: unknown type name ‘IF’
<stdin>:148:1: error: unknown type name ‘CREATE’
<stdin>:148:14: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘IF’
<stdin>:148:14: error: unknown type name ‘IF’
<stdin>:151:44: warning: multi-character character constant [-Wmultichar]
<stdin>:151:51: warning: multi-character character constant [-Wmultichar]
<stdin>:151:58: warning: multi-character character constant [-Wmultichar]
<stdin>:151:65: warning: multi-character character constant [-Wmultichar]
<stdin>:160:1: error: unknown type name ‘CREATE’
<stdin>:160:14: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘IF’
<stdin>:160:14: error: unknown type name ‘IF’
<stdin>:162:1: error: unknown type name ‘CREATE’
<stdin>:162:14: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘IF’
<stdin>:162:14: error: unknown type name ‘IF’
<stdin>:196:1: error: unknown type name ‘CREATE’
<stdin>:196:14: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘IF’
<stdin>:196:14: error: unknown type name ‘IF’
<stdin>:198:1: error: unknown type name ‘CREATE’
<stdin>:198:14: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘IF’
<stdin>:198:14: error: unknown type name ‘IF’
<stdin>:202:1: warning: missing terminating " character
<stdin>:202:1: error: missing terminating " character
Makefile:678: recipe for target 'wazuh_db/schema_agents.o' failed
make[1]: *** [wazuh_db/schema_agents.o] Error 1
make[1]: Leaving directory '/mnt/c/Users/Demetri/source/repos/wazuh/src'
Makefile:492: recipe for target 'winagent' failed
make: *** [winagent] Error 2