Reply To: Use stm32CubeMX and c++

Sysprogs forums Forums VisualGDB Use stm32CubeMX and c++ Reply To: Use stm32CubeMX and c++

#7468
dave93cab
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