Thank you Michael,
"Dipperstein, Michael" a icrit :
{Quote hidden}> > From: gaston gagnon [
@spam@gaston.gagnonKILLspam
VIDEOTRON.CA]
> > Sent: Monday, August 05, 2002 3:23 PM
>
> [...]
>
> > Here is what I do Peter:
> > With my project open in MPLAB I do: Project --> Edit
> > Project-->Include Path
> > and type this line: c:\ht-pic\include -id:\gaston_e\applicht\include
> > In the project I actually have two .c files and both are
> > recompiled every time F10 is
> > depressed :o(
>
> Well, I'm not Peter, but I've had more than my share of run-ins with MPLAB's
> Make utility and PICC. First set your include path to:
>
> C:\HT-PIC\INCLUDE (Assuming that's where your compiler is. The new compiler
> moved.)
> If you have files in directories other than the directory that you're compiling
> from and the directory with the compiler include files, you're blazing a new
> trail.
I usually keep the project include files in the project directory, all of my
utilities include files in another directory.
> I've also noticed that the new PIC18F parts have files with long file names and
> MPLAB only handles the 8.3 format. If you don't plan on changing PICC include
> files, you can place dummy files with truncated names (truly truncated, not with
> ~1) in the include path.
As Hi-Tech is dos, I always use the 8.3 format.
If one has, like I do, their include files in different directories, the command
line for the Hi-Tech compiler requires that the include path in MPLAB Edit Project
window be constructed this way:
Include Path C:\HT-PIC\INCLUDE -iD:\GASTON_E\APPLICHT\INCLUDE Notice the
space and -i separating the two paths.
But MPLAB seems to be only happy when the different paths are separated by semicolon
which gives:
Include Path C:\HT-PIC\INCLUDE;D:\GASTON_E\APPLICHT\INCLUDE with no -i for the
second directory.
Now if the c files and obj files have the same time stamps, F10 produces: "Target
is current" which is fine.
But if one of the c file is modified, then it is the compiler that does not find the
included files specified in the c file. :o(
One "get around way" I found is to write Include Path
c:\ht-pic\include in MPLAB and absolute paths everywhere else in the c files.
A typical exempla for one file would be:
#include <pic.h>
#include "d:\gaston_e\applicht\include\sci.h"
Well this is feasible but hawk ward. (?) to say the least.
I did not see any reference to this problem in Hi-Tech's forum.
To the many other Hi-Tech users on the list, how do you deal with this problem ?
Gaston
--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics