Page 1 of 1

Error with swkbd

Posted: Sat May 29, 2021 3:35 am
by Electric
I have an error when linking a library made with swkbd

Code:

Code: Select all

const char *CMenuField::Key( int key, int down )
	if ( key == K_ENTER )
	{
		Result rc=0;
		char con_input[50] = {0};

		SwkbdConfig kbd;
    	rc = swkbdCreate(&kbd, 0);

		if (R_SUCCEEDED(rc)) {
			swkbdConfigMakePresetDefault(&kbd);

			rc = swkbdShow(&kbd, con_input, sizeof(con_input));

			if (R_SUCCEEDED(rc)) {
				Q_strncpy(szBuffer, con_input, sizeof(szBuffer));
			}
			swkbdClose(&kbd);
		}
	}
	
	SetCvarString( szBuffer );
	_Event( QM_CHANGED );
	return uiSoundNull;
}
I have attached an output image below

Re: Error with swkbd

Posted: Sat May 29, 2021 3:51 pm
by WinterMute
The image you've attached is too small to see. It would be better if you provided the error messages as text in a phpbb code block. You should be able to copy that from your terminal or, failing that, you could capture output from make as a text file. From your msys2 terminal run this

Code: Select all

make 2>&1 | tee build.txt
then copy & paste the contents here.