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?
Thanks
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,
-George
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.