c - CLion:不能包含 Math.h
问题描述
这是我的 CMakeLists.txt:
cmake_minimum_required(VERSION 3.17)
project(fms C)
set(CMAKE_C_STANDARD 99)
add_executable(fms main.c fms.c fms.h fms_data.c)
target_link_libraries(fms m)
以下是编译器错误之一:
C:\Users\Holland\CLionProjects\fms\fms.c(27): 错误 C2065: "M_PI": nichtdeklarierter Bezeichner
解决方案
推荐阅读
- python - 我使用了朴素贝叶斯分类器,但现在我想使用 SVM 分类器,怎么办?
- html - responsive Masonry layout component not resizing according to the viewport
- json - How can I view this Json in tableView by id's
- flutter - flutter desktop build fails with `com.apple.xcode.tools.swift.compiler`
- angular - 带有客户注入器的动态组件传递 @self 依赖项
- google-sheets - Google 表格条件格式不支持定义的名称范围
- javascript - Vue.js 到 Node.js 服务器:如何保护我的 POST 调用?
- opencv - 如何将 opencv 与 autohotkey 一起使用?
- ios - 如何在 Objective-C 中创建新对象并分配属性?
- html - 如何在应用了 CSS 的情况下使用 Sweetalert?