1. 我不是程序员
  2. 我想要汇编(win32中,并且偶然在这些错误消息:

ui/对话/filedialogimpl-win32.cpp:第1379:错误:C++98"矩阵"都必须由初始化构造中,不通过'{...}'
make[1]:***[ui/对话/filedialogimpl-win32.o]Error1

所怀疑的代码 filedialogimpl-win32.cpp:

...
    // Draw the image
    if(_preview_bitmap_image)    // Is the image a pixbuf?
    {
        // Set the transformation
        const Matrix matrix = {
            scaleFactor, 0,
            0, scaleFactor,
            svgX, svgY };
        context->set_matrix (matrix);
...

所以它是如何用C++编写98标准?

我在谷歌上搜索,但没有人遇到过这种方式,它可能无关?

有帮助吗?

解决方案

而不是的

const Matrix matrix = { scaleFactor, 0, 0, scaleFactor, svgX, svgY };

应该有这样的事情:

const Matrix matrix( scaleFactor, 0, 0, scaleFactor, svgX, svgY );

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top