#include "stdafx.h"
#include <boost/gil/gil_all.hpp>
#include <boost/gil/extension/io/png_io.hpp>
namespace gil = boost::gil;
int _tmain(int argc, _TCHAR* argv[])
{
gil::gray8_image_t input;
gil::png_read_image("..\\resources\\frame10.png",input);
return 0;
}
在主程序中,我想读取 png 图像。调试没有问题。但是当我运行可执行文件时,它崩溃了。什么原因?谢谢!