gpt4 book ai didi

c++ - 无法解析的外部符号 : __cairo_path_fixed_stroke_to_traps

转载 作者:行者123 更新时间:2023-11-30 17:09:39 24 4
gpt4 key购买 nike

我正在关注这个post构建并安装 cairo。

但是,我遇到了以下错误:

Error   277 error LNK2019: unresolved external symbol __cairo_path_fixed_stroke_to_traps referenced in function __cairo_traps_compositor_stroke C:\gtk_compilation\cairo\cairo-1.12.18\msvc\vs10\cairo-traps-compositor.obj cairo

安装指南说我需要关闭整个程序优化我使用 /GL- 编译器标志执行此操作,但仍然无法解决该问题。

以下是 C:\gtk_compilation\cairo\cairo-1.12.18\msvc\vs10\cairo-traps-compositor.c 文件的摘录:

cairo_int_status_t (*func) (const cairo_path_fixed_t    *path,
const cairo_stroke_style_t *stroke_style,
const cairo_matrix_t *ctm,
const cairo_matrix_t *ctm_inverse,
double tolerance,
cairo_traps_t *traps);
composite_traps_info_t info;
unsigned flags;

if (antialias == CAIRO_ANTIALIAS_BEST || antialias == CAIRO_ANTIALIAS_GOOD) {
func = _cairo_path_fixed_stroke_polygon_to_traps;
flags = 0;
} else {
func = _cairo_path_fixed_stroke_to_traps; /* line#2183 */
flags = need_bounded_clip (extents) & ~NEED_CLIP_SURFACE;
}

上述函数在cairoint.h中定义为:

cairo_private cairo_int_status_t
_cairo_path_fixed_stroke_to_traps (const cairo_path_fixed_t *path,
const cairo_stroke_style_t *stroke_style,
const cairo_matrix_t *ctm,
const cairo_matrix_t *ctm_inverse,
double tolerance,
cairo_traps_t *traps);

cairo_private cairo_int_status_t
_cairo_path_fixed_stroke_polygon_to_traps (const cairo_path_fixed_t *path,
const cairo_stroke_style_t *stroke_style,
const cairo_matrix_t *ctm,
const cairo_matrix_t *ctm_inverse,
double tolerance,
cairo_traps_t *traps);

有人可以建议解决此问题的方法吗?

最佳答案

根据 @andlabs 评论,我发现文件 cairo-path-行程-traps.c 未包含在 Visual Studio 项目源中。添加了这个并重建了解决方案 - 瞧!!

关于c++ - 无法解析的外部符号 : __cairo_path_fixed_stroke_to_traps,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33191396/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com