目标'<projectname> .exe'的配方失败

时间:2019-10-06 13:27:21

标签: c++

我只想在Dev-Cpp中测试cpp图形库。现在,我之前没有运行图形程序,并且遇到了这些错误。 MakeFile.win中的$(CPP)$(LINKOBJ)-o $(BIN)$(LIBS)行标记为红色。

我将库的.h文件和.a文件移动到正确的文件夹中,并将参数放入项目设置中。


#include <graphics.h>

int main(){

    initwindow(800,800);

    line(0, 400, 800, 400);

    getch();

    return 0;

}

undefined reference to `CreateStreamOnHGlobal@12'
undefined reference to `IID_IPicture'
undefined reference to `OleLoadPicture@20'
undefined reference to `PrintDlgA@4'
undefined reference to `PrintDlgA@4'
undefined reference to `GetSaveFileNameA@4'
undefined reference to `GetOpenFileNameA@4'
[Error] ld returned 1 exit status

recipe for target 'GraphicsTest.exe' failed

0 个答案:

没有答案