posted January 26, 2001 14:41
Here is how to get the error and warning output of PIC C and PICC-18 to work within MPLAB, in that you can double-click on the error/warning message and have MPLAB's editor automatically take you to the offending line of source code.In Windows 2000 Pro, do either:
My Computer > Properties > Advanced > Environment Variables ...
or
Start > Settings > Control Panel > System > Advanced > Environment Variables ...
then in "User Variables for Userid" do:
New > Variable, enter HTC_ERR_FORMAT , OK
Variable Value, enter Error[] %f %l : %s , OK
and
New > Variable, enter HTC_WARN_FORMAT , OK
Variable Value, enter Warning[] %f %l : %s , OK
Then log off and log back on for these changes to take effect. You can see that they are in force by running the MS-DOS Prompt (C:\WINNT\system32\command.com) and entering the SET command. Type EXIT to leave the MS-DOS command prompt.
Note that you must log off and log back on for these changes to take effect. If you change the environment variables without logging off and back on, MPLAB may behave strangely, like do nothing when you click on the error/warning message.
[This message has been edited by aek (edited January 26, 2001).]