lol. You see the */ at the end of your d_neogeo.cpp ?
Make sure you put any drivers you want to add AFTER that set of characters.
Just so you know, anything between /* example text */ won't be compiled.
Also, the error you get is in the neo_run.cpp
This:
int NeoExit()
ncthd2003 =-1;
{
Should be this:
int NeoExit()
{
ncthd2003 =-1;