Error with swkbd

Post Reply
Electric
Posts: 1
Joined: Sat May 29, 2021 3:32 am
Contact:

Error with swkbd

Post by Electric » Sat May 29, 2021 3:35 am

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
Attachments
unknown.png
error
(15.5 KiB) Not downloaded yet

WinterMute
Site Admin
Posts: 1845
Joined: Tue Aug 09, 2005 3:21 am
Location: UK
Contact:

Re: Error with swkbd

Post by WinterMute » Sat May 29, 2021 3:51 pm

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.
Help keep devkitPro toolchains free, Donate today

Personal Blog

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests