Compile Error: 'fbc' is not recognized as an internal or external command

From OHRRPGCE-Wiki
Jump to: navigation, search

SO you have already installed freebasic and when you try to compile you get a bunch of error messages that look something like this:

 'fbc' is not recognized as an internal or external command

This happens because for some reason FreeBasic has failed to add itself to your computer's PATH. Here is how to fix it.

  1. Go to the Start Menu
  2. Right-Click on My Computer
  3. Pick Properties
  4. Wait for the System Properties control panel to open
  5. Go to the Advanced tab
  6. Click on the button labeled Environment Variables
  7. In the list of System variables, locate Path
  8. Double-click on Path
  9. At the end of Variable value add ;C:\Program Files\FreeBASIC\
    • Be careful! You do not want to replace the value, you want to add on to the end of it!
    • the ; symbol is important. It is a separator
  10. Click OK until you get back to the desktop
  11. Try to compile again