You're right Robbbert, # is needed. If not i get an error.
I used TARGET=hbmame (only) to get hbmame, and then TARGET=hbmame OSD=winui (again to get hbmame gui).
It compiles perfect. My problem is i need to user direcinput to use controllers through hyperspin and without recompile it there's no way. (After changing to force it to use directinput still doesn't work)
Thanks for your answers