【发布时间】:2019-11-05 23:40:45
【问题描述】:
我将尝试在代码块 17.12 中启用 openmp。我添加到 linker settings> other linker options> -lgomp -pthread 但是当我构建程序时显示错误: ld.exe 找不到 -lgomp 错误:ld 返回 1 个退出状态 怎么了?你有什么想法吗?
【问题讨论】:
标签: c openmp codeblocks
我将尝试在代码块 17.12 中启用 openmp。我添加到 linker settings> other linker options> -lgomp -pthread 但是当我构建程序时显示错误: ld.exe 找不到 -lgomp 错误:ld 返回 1 个退出状态 怎么了?你有什么想法吗?
【问题讨论】:
标签: c openmp codeblocks
您正在运行 Windows。因此,您不必添加 -lgomp,而是添加 libgomp-1.dll(32 位)或 libgomp_64-1.dll(64 位)。
【讨论】: