michaelb / sniprun

A neovim plugin to run lines/blocs of code (independently of the rest of the file), supporting multiples languages
MIT License
1.43k stars 46 forks source link

C+OpenGL ERROR #266

Closed chenhui2016 closed 8 months ago

chenhui2016 commented 8 months ago

Describe the language you want support for (compiler, specificities) I'd like an interpreter for OpenGL that uses

The following is a configuration file for OpenGL in C language. image When I run the following error with SnipRun, but there is no problem with terminal compilation and operation, how should I solve it? image

michaelb commented 8 months ago

well, not excluding other potential issues, but for starters the "compilation_options" configuration field doesn't exist.

You should have better results adding your flags to the compiler argument itself, as shown in this example wiki, though I agree it can be non-obvious