How do you make gcc stop after the first error encountered

Group
Does anyone know if there is a switch to g++ to stop after the first error? For example if i get 50 errors about undefined reference how would i get it to stop after the first library it couldnt find? Thanks
-Wfatal-errors in command line call, or add it to the options in your IDE call.
thanks
Topic archived. No new replies allowed.