Xubuntu 20 unable to compile in Debug Mode

Hello

Im using vscode or make directly but the same happens, compiling in debug mode do not work i get undefined reference to various ofThead methods in ofURLFileLoader, ofGsUtils, ofAlSoundPlayer files

note that im able to buil in relase without problem