Flymake configuration error while programming in C

后端 未结 2 1461
我在风中等你
我在风中等你 2021-02-08 06:17

When trying to run M-x Flymake-Mode in Emacs I get:

Flymake: Configuration error has occured while running (make -s -C ./CHK_SOURCES=helloworld_flymake.c SYNTAX_         


        
2条回答
  •  轮回少年
    2021-02-08 06:55

    Makefile' must contain thecheck-syntax' target. Append this to the Makefile:

    check-syntax:
         gcc -o nul -S ${CHK_SOURCES}
    

    Make sure you use a TAB to start the second line. Also there is a bug with flymake that makes you have to name the Makefile with a capital M. It won't work if you, say, call it "makefile." Watch out for that!

提交回复
热议问题