magick/api.h 头文件问题

AlwaysSLH 2007-11-20 12:12:13
编程的时候用到一些用C写的库,里边用了一个magick/api.h的头文件,偶在VS2005下编译报错说:
Cannot open include file: 'magick/api.h': No such file or directory
这个头文件是什么呀?是不是老式的API库呀?假如是那该用什么代替呢?
看源码在加载了这个头文件后,用到了下面这些类型和函数,请问用什么代替呢?

类型:
ExceptionInfo
Image
ImageInfo

函数:
InitializeMagick();
GetExceptionInfo();
CloneImageInfo();
ReadImage();
CatchException();
DestroyMagick();

另外config.h这个头文件是什么呀?vs2005下也找不到,该怎么办呢?

急,高手帮忙呀,不甚感激
...全文
699 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
volkswageos 2010-09-29
  • 打赏
  • 举报
回复
我也是这个错误啊,你是怎么解决的啊?
AlwaysSLH 2007-12-03
  • 打赏
  • 举报
回复
帮帮忙
yuyunliuhen 2007-12-03
  • 打赏
  • 举报
回复
//magick.h
/*
ImageMagick Application Programming Interface declarations.
*/
#ifndef _MAGICK_H
#define _MAGICK_H

#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {
#endif

/*
System include declarations.
*/
#define _XOPEN_SOURCE 500
#define _POSIX_C_SOURCE 199506L

#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#if !defined(_VISUALC_)
# include <unistd.h>
#else
# include <direct.h>
# define HAVE_STRERROR
#endif

#if defined _FILE_OFFSET_BITS && _FILE_OFFSET_BITS == 64
#define fseek fseeko
#define ftell ftello
#endif

#include <string.h>
#include <ctype.h>
#include <locale.h>
#include <errno.h>
#include <fcntl.h>
#include <math.h>
#include <time.h>
#include <limits.h>
#include <assert.h>

#if !defined(vms) && !defined(macintosh)
# include <sys/types.h>
# include <sys/stat.h>
#if !defined(vms) && !defined(macintosh) && !defined(WIN32)
# if HAVE_SYS_NDIR_H || HAVE_SYS_DIR_H || HAVE_NDIR_H
# define dirent direct
# define NAMLEN(dirent) (dirent)->d_namlen
# if HAVE_SYS_NDIR_H
# include <sys/ndir.h>
# endif
# if HAVE_SYS_DIR_H
# include <sys/dir.h>
# endif
# if HAVE_NDIR_H
# include <ndir.h>
# endif
# else
# include <dirent.h>
# define NAMLEN(dirent) Extent((dirent)->d_name)
# endif
# include <pwd.h>
#endif
#if !defined(S_ISDIR)
# define S_ISDIR(mode) (((mode) & S_IFMT) == S_IFDIR)
#endif
# include "api.h"
#if !defined(WIN32)
# include <sys/time.h>
# include <sys/times.h>
#endif
#else
# include <types.h>
# include <stat.h>
#if defined(macintosh)
# include <SIOUX.h>
# include <console.h>
# include <unix.h>
#endif
# include "api.h"
#endif

#if defined(HAVE_MMAP) && !defined(_VISUALC_)
# include <sys/mman.h>
#endif
#if defined(HasPTHREADS)
# include <pthread.h>
#endif
#if defined(HAVE_POLL)
# include <sys/poll.h>
#endif
#if defined(WIN32)
# include "nt.h"
#endif
#if defined(macintosh)
# include "mac.h"
#endif
#if defined(vms)
# include "vms.h"
#endif

#undef index
#undef pipe

#if defined(__cplusplus) || defined(c_plusplus)
}
#endif

#endif

yuyunliuhen 2007-12-03
  • 打赏
  • 举报
回复
//api.h 是这些
00001 // ### CHECK-ME-BEFORE-RELEASE ###
00002 //
00003 // Title: api.h
00004 // Created: Wed Apr 10 18:09:16 2002
00005 // Authors: Tim Weyrich <weyrich@inf.ethz.ch>
00006 //
00007 // Copyright (c) 2001--2003, Computer Graphics Lab, ETH Zurich
00008 //
00009 // This file is part of the Pointshop3D system.
00010 // See http://www.pointshop3d.com/ for more information.
00011 //
00012 // This program is free software; you can redistribute it and/or
00013 // modify it under the terms of the GNU Lesser General Public
00014 // License as published by the Free Software Foundation; either
00015 // version 2.1 of the License, or (at your option) any later
00016 // version.
00017 //
00018 // This program is distributed in the hope that it will be useful,
00019 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00020 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00021 // GNU Lesser General Public License for more details.
00022 //
00023 // You should have received a copy of the GNU Lesser General
00024 // Public License along with this library; if not, write to the
00025 // Free Software Foundation, Inc., 59 Temple Place, Suite 330,
00026 // Boston, MA 02111-1307 USA
00027 //
00028 // Contact info@pointshop3d.com if any conditions of this
00029 // licensing are not clear to you.
00030 //
00031 // ---------------------------------------------------------------
00032 //
00033 // $Log: api.h,v $
00034 // Revision 1.19 2004/06/30 17:12:43 weyrich
00035 // more documentation...
00036 //
00037 // Revision 1.18 2004/04/27 15:34:05 weyrich
00038 // experimental: fixing propmask/layout inconsistencies caused by the Pointshop3D writer
00039 //
00040 // Revision 1.17 2003/11/20 15:24:51 weyrich
00041 // fix: argument list termination PropMaskType::setBits()
00042 //
00043 // Revision 1.16 2003/11/20 09:13:12 weyrich
00044 // win32 fix: dump/readSurfelUserFlags linkage
00045 //
00046 // Revision 1.15 2003/11/19 13:57:37 weyrich
00047 // removed misleading normal/densitity 4-tuple write functions
00048 //
00049 // Revision 1.14 2003/11/19 13:04:00 weyrich
00050 // added Pointshop3D headers
00051 //
00052 // Revision 1.13 2003/11/19 09:50:48 weyrich
00053 // fix: g++ optimization bug
00054 //
00055 // Revision 1.12 2003/11/18 09:44:45 weyrich
00056 // fix: shininess output; new: clamping of double->uintXX on output
00057 //
00058 // Revision 1.11 2003/11/17 15:05:52 weyrich
00059 // new API allowing for more than 32 surfel properties
00060 //
00061 // Revision 1.10 2003/10/09 15:40:57 weyrich
00062 // added properties 'camera_id' and 'camera_weight' for Stephan Wuermlin
00063 //
、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、

太长 ,给个网站吧 http://graphics.ethz.ch/pointshop3d/sfldoc/html/api_8h-source.html
xugang_2001 2007-11-20
  • 打赏
  • 举报
回复
Cannot open include file: 'magick/api.h ': No such file or directory


错误明显是这些文件编译器找不到.

这种问题的解决办法只能是找到所需要的文件,然后放在项目目录下面.或者在项目属性里包含这些文件的目录
AlwaysSLH 2007-11-20
  • 打赏
  • 举报
回复
在网上查了一下,这个是ImageMagick里的东西,也在网上下了几个,但找不到magick/api.h这个文件,不知该怎么作?恳求用过个的哥哥姐姐帮忙指点一下,谢谢

64,637

社区成员

发帖
与我相关
我的任务
社区描述
C++ 语言相关问题讨论,技术干货分享,前沿动态等
c++ 技术论坛(原bbs)
社区管理员
  • C++ 语言社区
  • encoderlee
  • paschen
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
  1. 请不要发布与C++技术无关的贴子
  2. 请不要发布与技术无关的招聘、广告的帖子
  3. 请尽可能的描述清楚你的问题,如果涉及到代码请尽可能的格式化一下

试试用AI创作助手写篇文章吧