allenhuffman
 
 
  Joined: 17 Jun 2019 Posts: 643 Location: Des Moines, Iowa, USA 
			
			 
			 
			
			 
			
			
			
			
			
  
		  | 
		
			
				| #use DYNAMIC_MEMORY to resolve compiler/linker errors. | 
			 
			
				 Posted: Tue Jul 09, 2019 10:10 am     | 
				     | 
			 
			
				
  | 
			 
			
				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 ?
 
 
Using: 24FJ256GA106, 24EP256GP202 and 24FJ64GA002. | 
			 
		  |