DCMTK问题错误:libc.h:没有这样的文件或目录 [英] DCMTK question error: libc.h: No such file or directory

查看:79
本文介绍了DCMTK问题错误:libc.h:没有这样的文件或目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试编写简单的dcmtk应用程序,我实现了以下标头

I am trying to write simple dcmtk application I adeed the following header

#include <dcmtk/config/osconfig.h> 
#include <dcmtk/dcmimgle/dcmimage.h> 

它给出错误错误:libc.h:没有这样的文件或目录

it give the error error: libc.h: No such file or directory

我使用xcode和Mac OS Snow Leopard

I use xcode and mac os snow leopard

请提出任何建议

推荐答案

我假设您正在尝试针对iOS进行编译?当您设置DCMTK以生成适当的构建文件时,请在运行CMake之前将以下行添加到CMakeLists.txt:

I assume you're trying to compile for iOS? When you setup DCMTK to generate the appropriate build files, add this line to CMakeLists.txt before you run CMake:

SET(HAVE_LIBC_H FALSE)

我将这一行放在配置文件中,在该文件中为Darwin OS设置了C/C ++标志.那应该可以帮助您消除此错误.

I'd place this line in the configuration file where the C/C++ flags are set for the Darwin OS. That should help you eliminate this error.

这篇关于DCMTK问题错误:libc.h:没有这样的文件或目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆