There's a linker error that's driving me nuts because I've done exactly what's been done elsewhere in the file and it's not working.
To cmds.h I added:
To cmd0.c I added:
and to cmd4.c I added:
And I get the error
which is odd because cmds.h is properly included and all the other functions in the command list have no problem.
Anybody have any suggestions?
If it helps I can upload the latest (uncompilable) version to the subversion repository.
To cmds.h I added:
Code:
extern void do_cmd_switch_lang(void);
Code:
{ L"Switch langage", KTRL('L'), CMD_NULL, do_cmd_switch_lang }
Code:
/* * If in English mode, switch to Japanese (and vice versa) */ static void do_cmd_switch_lang(void) { if(arg_language == LNG_ENGLISH) arg_language = LNG_JAPANESE; else arg_language = LNG_ENGLISH; }
Code:
cmd0.obj : error LNK2001: unresolved external symbol _do_cmd_lang
Anybody have any suggestions?
If it helps I can upload the latest (uncompilable) version to the subversion repository.
Comment