I have a very simple main.cpp module. When I compile I get the following three errors:
#48-D incompatible redefinition of macro "FLASH_FMA_OFFSET_M" (declared at line 8036 of "C:/Projects/StellarisWare/inc/lm4f231h5qr.h") Tracker line 98, external location: C:\Projects\StellarisWare\inc\hw_flash.h C/C++ Problem
#48-D incompatible redefinition of macro "GPIO_LOCK_KEY" (declared at line 2442 of "C:/Projects/StellarisWare/inc/lm4f231h5qr.h") Tracker line 69, external location: C:\Projects\StellarisWare\inc\hw_gpio.h C/C++ Problem
#48-D incompatible redefinition of macro "GPIO_LOCK_KEY" (declared at line 69 of "C:/Projects/StellarisWare/inc/hw_gpio.h") Tracker line 2442, external location: C:\Projects\StellarisWare\inc\lm4f231h5qr.h C/C++ ProblemI am using StellarisWare SW-LM3S-8264 and CCS5. Since I'd like to get to the point of no errors or warnings, what's the suggested action?
Upgrading CCS5 took care of the problem.
However, upgrading to StellarisWare 8555 made it come back!
I can't tell you how to fix this problem, but I can tell you how to diagnose it. Preprocess the source file as described here. You don't need to send the resulting .pp file to us. Just inspect it yourself. You'll see where the multiple definitions are coming from.
Thanks and regards,
TI C/C++ Compiler Forum ModeratorPlease click Verify Answer on the best reply to your question.The Compiler Wiki answers most common questions.Track an issue with SDOWP. Enter your bug id in the "Find Record ID" box.
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.