|
Re: Dissatisfaction With MPLAB
Quote:
|
Originally Posted by katkana
...whenever I would go to write some program with say, #include <stdio.h>, that file wouldn't be found and I would find myself unable to build said program...
|
Kat,
I would suggest you uninstall MPLAB and the C18 compiler and reinstall. Everything I am about to post should resolve itself with a proper install.
MPLAB needs to know what stdio.h file you wish to use. I have five on my laptop...
From MPLAB, open "Project" then "build options" then project and see where you have told MPLAB to look for (in this case, "include") files. On my computer, that location is "c:\mcc18h\". This was the default when I installed the new C18 compiler this year.
Note that importing a project from another computer may cause a conflict. As an example, one of the computers at our school is set up differently from mine. When I zip and move those files to my laptop and then try and build the project, it cannot find the include files because they are in a different location on the school computer. Likewise, copying my files to the school computer causes a similar problem.
Note that every development system ever made has a similar potential problem if you have more than one development environment on your development system.
If MPLAB was to use the stdio.h file for, say, Matlab R12 (on my computer located at C:\matlabR12\sys\lcc\include), the results would be devastating. The same goes for Visual Studio, et cetera.
Note that your MPLAB may have gotten corrupted if you did not follow the instructions for the sequence of installation.
Hope this helps.
Mike
__________________
Mike Betts
Alumnus, Team 3518, Panthrobots, 2011
Alumnus, Team 177, Bobcat Robotics, 1995 - 2010
LRI, Connecticut Regional, 2007-2010
LRI, WPI Regional, 2009 - 2010
RI, South Florida Regional, 2012 - 2013
As easy as 355/113...
|