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 support@ccsinfo.com

#use DYNAMIC_MEMORY to resolve compiler/linker errors.

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
allenhuffman



Joined: 17 Jun 2019
Posts: 537
Location: Des Moines, Iowa, USA

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

#use DYNAMIC_MEMORY to resolve compiler/linker errors.
PostPosted: Tue Jul 09, 2019 10:10 am     Reply with quote

Recently, I shared some compiler errors I was getting, that resulted in a .o file that was in use by the compiler (and thus, no builds could be done and the file could not be deleted) until I shut down the IDE.

Code:

*** Error 146 "...path...\PIC\$linker.c" Line 4(8,14): Import error  dyn mem mis-match true!=false
 *** Error 146 "...path...\PIC\$linker.c" Line 4(8,28): Import error


It was suggested to add this, which did indeed resolve the error:

Code:

#use DYNAMIC_MEMORY


However, now I have warnings about things that this brings in that are unused.

Does anyone here understand what "dyn mem mis-match true!=false" implies? I am not using malloc(), though I do use some string functions like memcpy()/memset().

Thanks for any clarification. I'm hoping to correct my code before it goes into our production project.
_________________
Allen C. Huffman, Sub-Etha Software (est. 1990) http://www.subethasoftware.com
Embedded C, Arduino, MSP430, ESP8266/32, BASIC Stamp and PIC24 programmer.
http://www.whywouldyouwanttodothat.com ?
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
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