eclipse cdt command line input

前端 未结 3 627
我寻月下人不归
我寻月下人不归 2021-01-21 03:10

I\'m new to eclipse cdt. I\'m wondering how can i add command line argument (e.g.-lm) for compiling

3条回答
  •  借酒劲吻你
    2021-01-21 03:45

    -lm include the math library. This is a linker parameters.

    Project Proprerties -> C/C++ build -> Settings -> GCC Linker -> Libraries -> "add the library" m

提交回复
热议问题