举报

EasyX4MinGW_20240601 在MinGW下编译报错

0

操作系统: Win11家庭中文版 23H2

EasyX版本: EasyX4MinGW_20240601

MinGW版本: x86_64-14.2.0-release-posix-seh-ucrt-rt_v12-rev0 

代码是测试代码,EasyX按照教程配置

#include <graphics.h>
#include <conio.h>

int main()
{
	initgraph(640, 480);
	circle(320, 240, 100);
	_getch();
	return 0;
}

编译时报错如下:
D:/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/14.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/14.2.0/../../../../x86_64-w64-mingw32/lib/../lib/libeasyx.a(EasyX.GraphWnd.o):EasyX.GraphWnd.cpp:(.text+0x198c): undefined reference to `__imp___iob_func'


请大佬帮我看看哪里出了问题,谢谢

ava
Pbfree

2024-10-8

举报
0

easyx支持 mingw 有限,换个 mingw 版本试试,比如 https://github.com/jmeubank/tdm-gcc/releases/download/v9.2.0-tdm64-1/tdm64-gcc-9.2.0.exe

ava
xiongfj ◑◑

2024-10-11

技术讨论社区