CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Phantom Function calls
Goto page Previous  1, 2, 3
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Gabriel



Joined: 03 Aug 2009
Posts: 1077
Location: Panama

View user's profile Send private message

PostPosted: Thu Apr 04, 2019 1:11 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Thu Apr 04, 2019 1:19 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Thu Apr 04, 2019 2:02 pm     Reply with quote

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

View user's profile Send private message Visit poster's website

PostPosted: Thu Apr 04, 2019 2:04 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Thu Apr 04, 2019 2:35 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Fri Apr 05, 2019 4:46 am     Reply with quote

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.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page Previous  1, 2, 3
Page 3 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group