Sysprogs forums › Forums › VisualGDB › Use stm32CubeMX and c++ › Reply To: Use stm32CubeMX and c++
January 13, 2016 at 04:47
#7468
Participant
Sorry for being spammy, I can’t seem to edit my posts. I updated the makefile manually like so:
$(BINARYDIR)/main.o : Src/main.c $(all_make_files) |$(BINARYDIR)
$(CC) $(CFLAGS) -x c++ -c $< -o $@ -MD -MF $(@:.o=.dep)
If someone has a better solution let me know. I know I should be declaring my classes outside of main.c, am a bit of a noob just messing around. Cheers