How to use yocto generated sdk

not quite sure what you are doing…

Are you trying to use the toolchain to compile a c program?