| View previous topic :: View next topic |
| Author |
Message |
Gabriel
Joined: 03 Aug 2009 Posts: 1077 Location: Panama
|
|
Posted: Thu Apr 04, 2019 1:11 pm |
|
|
So Recap:
I'm NOT missing an #Endif as suggested by the compiler.
I do NOT have a variable named "Strcopy" as suggested by a warning.
compiles just fine on 5.013
Bamboozled with 5.078 _________________ CCS PCM 5.078 & CCS PCH 5.093 |
|
 |
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Thu Apr 04, 2019 1:19 pm |
|
|
Just as an experiment, try this and see what happens:
| Quote: | #include <string.h>
#undef strcopy
|
Add the line in bold below the #include for string.h. I doubt that strcopy
is used anywhere in your program, so undef'ing it shouldn't hurt, and it
might help solve your problem.
(I have to leave now, so I won't be able to reply for a few hours) |
|
 |
Gabriel
Joined: 03 Aug 2009 Posts: 1077 Location: Panama
|
|
Posted: Thu Apr 04, 2019 2:02 pm |
|
|
Added the #undef - did not work
Went ahead and commented out the #define in string.h and it still gave me the warning, pointing to the commented line! _________________ CCS PCM 5.078 & CCS PCH 5.093 |
|
 |
dluu13
Joined: 28 Sep 2018 Posts: 395 Location: Toronto, ON
|
|
Posted: Thu Apr 04, 2019 2:04 pm |
|
|
| Gabriel wrote: | Added the #undef - did not work
Went ahead and commented out the #define in string.h and it still gave me the warning, pointing to the commented line! |
You were able to comment out a line in string.h? All the files in my "Drivers" folder are write protected. I have a feeling there's something weird going on with your files' paths.
When I install new versions, I just put them into a separate Program Files folder, like
Program Files (x86)\PICCPCM5078
or
Program Files (x86)\PICCPCD5082
This is because I have had a few difficulties when different versions of the compiler are installed on my machine. This way, I can go into build tools of my MPLAB and explicitly point to which compiler I want. |
|
 |
Gabriel
Joined: 03 Aug 2009 Posts: 1077 Location: Panama
|
|
Posted: Thu Apr 04, 2019 2:35 pm |
|
|
In desperation ive uninstalled everything
Re installed ONLY 5.078 and:
The String.h Warning is gone, but the missing #Endif is still there.
EDIT: Re installed 5.013 and now the String.h warning is back and although i have MPLAB using 5.078 toolsuite it still takes the drivers from 5.013 _________________ CCS PCM 5.078 & CCS PCH 5.093 |
|
 |
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Fri Apr 05, 2019 4:46 am |
|
|
| Gabriel wrote: |
although i have MPLAB using 5.078 toolsuite it still takes the drivers from 5.013 |
Are you using MPLAB vs. 8.92 ? If so, go to your project folder and look
at a file with the .ccspjt extension. It may have a section like this:
| Code: |
[Directories]
Include=
|
If it has that section, it may be pointing to the Drivers folder for 5.013.
Edit it and fix it. |
|
 |
|