对loadimage(IMAGE *,char const *,int,int,bool)的未定义引用

这个问题到底怎么解?求助大神啊

程序代码:

#include <graphics.h> 
#include <iostream> 
#include <easyx.h>

void initGame();

int main()

    initGame(); 
    的getchar(); 
    
    返回 0 ; 
}

空隙 initGame()

    initgraph(600,500); 
    
    loadimage(NULL,“ 背景.jpg ”);    
}

错误:C:\ Users \ ADMINI?1 \ AppData \ Local \ Temp \ ccwGMKrC.o在initGame()函数中:
19 C:\ Users \ Administrator \ Desktop \五子棋.cpp未定义的引用initgraph(int, int,int)
‘21 C:\ Users \ Administrator \ Desktop \五子棋.cpp对loadimage(IMAGE *,char const *,int,int,bool)的未定义引用
C:\ Users \ Administrator \ Desktop \ collect2.exe [错误] ld返回1退出状态

http://shijue.me/community/photo-details/d444e6893451490188142819c9c91d6a_d
http://shijue.me/community/photo-details/4af0ccfd715d4971be1978a6ffbbc9dc_d
http://shijue.me/community/photo-details/90a9a34a4db449e38abbe1018ff5bd01_d
http://shijue.me/community/photo-details/083051f943e047bcba09d5c9e142d691_d
http://shijue.me/community/photo-details/02afcd8eb28d499086c8bbbda3e16bc6_d
http://shijue.me/community/photo-details/c120018e29054d6f9dfa36be5531b98f_d
http://shijue.me/community/photo-details/0b3ced5651a749caa778a3e0f2974532_d
http://shijue.me/community/photo-details/82326ed8073e461f8d754351265f32a8_d
http://shijue.me/community/photo-details/80d4cf1ddada4b949ae37ce80b90c4e0_d
http://shijue.me/community/photo-details/cb1c23b821404513b5079e4f264ad547_d
http://shijue.me/community/photo-details/094aca3b8d2e4f2b9064d0577afcefca_d
http://shijue.me/community/photo-details/cf2cd26d870a48d1bc7ce4022ba8c3dd_d
http://shijue.me/community/photo-details/d0233124594b466791679049b58cf151_d
http://shijue.me/community/photo-details/8a6ab73f84e947f4bcf319f4dec05805_d
http://shijue.me/community/photo-details/957931a369ef467f91cdd59969374fb3_d
http://shijue.me/community/photo-details/1d0cb03f8a7649a48a23c4a3de32af6a_d
http://shijue.me/community/photo-details/08b318eecdbc4a1eaf8281d47300e841_d
http://shijue.me/community/photo-details/8f8a96f425484b72aa389b3aeb217b05_d
http://shijue.me/community/photo-details/418f44aac686416c99a7d7324e45135c_d
http://shijue.me/community/photo-details/a511cdb6b17e42cebee103d5e4c30de7_d
http://shijue.me/community/photo-details/756ac4857b644bdcb5e5716cad11c862_d
http://shijue.me/community/photo-details/4e0fde833017489d8555271affbaa6d7_d
http://shijue.me/community/photo-details/5dbd249c6e6049cf8e95a1a34ff8f667_d
http://shijue.me/community/photo-details/c462178fae484e1785e7ebd66e343f79_d
http://shijue.me/community/photo-details/44b1f29dca01493591c4ecfcda86f140_d
http://shijue.me/community/photo-details/d0e11d29d45640ba9a0ef0ec5e889317_d
http://shijue.me/community/photo-details/ef5dee121bf445c082451a63eef54e6c_d
http://shijue.me/community/photo-details/5cbb67c3835f45f898470642ff5f954c_d
http://shijue.me/community/photo-details/8dc8f672ba0449cfa894bd8488770e77_d
http://shijue.me/community/photo-details/91a3ed13e6f141c39f35ffb57c0ff172_d
http://shijue.me/community/photo-details/73ea4ab4043447138506bc5b71417876_d
http://shijue.me/community/photo-details/29857e3670e34aa58c6bc6d38223a777_d
http://shijue.me/community/photo-details/60e83c1d99684986b513308a7721f0e6_d
http://shijue.me/community/photo-details/8a699713e3df4c8db009680a252e0f1d_d
http://shijue.me/community/photo-details/b058218f6d2b4356a1530d4671c7af47_d
http://shijue.me/community/photo-details/ff90d57eec72452fbe50ab1e4a031d19_d
http://shijue.me/community/photo-details/6a8a579146c646b1aa3a385ee9b0e707_d
http://shijue.me/community/photo-details/3b0c4b2459834e569a6a1487d70c041e_d
http://shijue.me/community/photo-details/367140291fc441b194748390b082a712_d
http://shijue.me/community/photo-details/6cb71d03b4484a82b816039a1aa61f98_d
http://shijue.me/community/photo-details/6ac5160e284d497bb7ab5a727b049255_d
http://shijue.me/community/photo-details/0b7537284ad64a728d22944538cca9e5_d
http://shijue.me/community/photo-details/ff11cf0779b741b98785df33e32bea1a_d
http://shijue.me/community/photo-details/30e0bbdfb410428fa1581240ec560be9_d
http://shijue.me/community/photo-details/a896520bf7e049e485402847933391c8_d
http://shijue.me/community/photo-details/c2159b5cc00a4fd598e6deb899096f8e_d
http://shijue.me/community/photo-details/0c2ef75c8b7945829fdd1946e191d31f_d
http://shijue.me/community/photo-details/a16172166b2f40c9acf3d3180fd66496_d
http://shijue.me/community/photo-details/b6081c34fad04989a92611474eff2fd3_d
http://shijue.me/community/photo-details/78962826a2b14454977fd444d8235ace_d
http://shijue.me/community/photo-details/fa2dc969b9e14dc8b89abc0cdba013c2_d
http://shijue.me/community/photo-details/32a9e01aeded4abd96e31388fac3402c_d
http://shijue.me/community/photo-details/5ea0141b926b4d88a2031ffc7c1d6392_d
http://shijue.me/community/photo-details/f5ae502fb1ef4865b4e55669c28c540e_d
http://shijue.me/community/photo-details/1cea5a32074842f6b5caf5e33105528a_d
http://shijue.me/community/photo-details/31cdb16d1f1e43849e9e12a96b8f7828_d

原文地址:https://www.cnblogs.com/dsfsf/p/8640742.html

时间: 2024-08-27 06:33:06

对loadimage(IMAGE *,char const *,int,int,bool)的未定义引用的相关文章

C++ char*,const char*,string,int 的相互转换

C++ char*,const char*,string,int 的相互转换 1. string转const char* string s ="abc";const char* c_s = s.c_str(); 2. const char*转string 直接赋值即可 const char* c_s ="abc";string s(c_s); 3. string转char* string s ="abc";char* c;constint len

char*,string,float,int 转换

char* 转 float: double atof (const char* str); /* atof example: sine calculator */ #include <stdio.h> /* printf, fgets */ #include <stdlib.h> /* atof */ #include <math.h> /* sin */ int main () { double n,m; double pi=3.1415926535; char bu

char (*(*p[3])( int ))[5] 等等一系列 左右法则

看这个: C指针声明解读之左右法则C语言所有复杂的指针声明,都是由各种声明嵌套构成的.如何解读复杂指针声明呢?右左法则是一个既著名又常用的方法.不过,右左法则其实并不是C标准里面的内容,它是从C标准的声明规定中归纳出来的方法.C标准的声明规则,是用来解决如何创建声明的,而右左法则是用来解决如何辩识一个声明的,两者可以说是相反的.右左法则的英文原文是这样说的:  The right-left rule: Start reading the declaration from the innermos

const volatile int i

问题: const volatile int i=10:这行代码有没有问题?如果没有,那 i 到底是什么 属性? 回答: 没有问题,例如只读的状态寄存器.它是volatile,因为它可能被意想不到地改变:它是const,因为程序不应该试图去修改它. volatile和const并不矛盾,只是控制的范围不一样,一个在程序本身之外,另一个是程序本身. const表示(运行时)常量语义:被const修饰的对象在所在的作用域无法进行修改操作,编译器对于试图直接修改const对象的表达式会产生编译错误.

34 char类型转换为int类型

#include<iostream> #include<cstdlib > using namespace std; int main() { char a=101; int sum=200; a+=27;sum+=a; printf("%d", a); cout<<sum<<endl; } 分析:char类型的范围是-128---+127,当a+=27,之后a的值超出可表示范围会变为-128. a为char型,-128~127,a=10

输出所有希腊字符(char类型和int类型转换练习) 已知:开始字符 &#39;α&#39; 和 结束字符&#39;ω&#39;

输出所有希腊字符(char类型和int类型转换练习) 已知:开始字符 'α' 和 结束字符'ω' package homework0702; public class Alphabet { public static void main(String[] args) { System.out.println("作者:王飞,郑州大学,兴唐教育"); System.out.println("该结构用于 希腊字母,欢迎使用\n"); System.out.println(

swift 之嵌套的理解 func chooseStepFunction(backwards: Bool) -&gt; (Int) -&gt; Int

http://blog.csdn.net/lzx_322/article/details/28861199 swift 函数使用前面需要添加 func 有返回值需要使用-> 后面添加返回类型 ,很容易理解,在看英文版的pdf文档时候看到嵌套函数的返回值,刚开始没有太明白,仔细思考了一会还是很容易理解的: 例如:func stepBackward(input: Int) -> Int {return input - 1} 返回值是int型的. func chooseStepFunction(ba

char类型与int类型相加

char类型是16位的,底层采用unicode编码保存.char类型是可以直接赋值给int类型的,因为是16位到32位低到高.举个例子比如int i='1';打印i的值是49.char类型跟int类型进行计算的时候会自动转换为int类型比如System.out.println('1'+1);输出结果是50.char类型的'='换成int是61 原文地址:https://www.cnblogs.com/lxl87/p/11555914.html

python基础(6):基本数据类型一(int、bool、str)

1. 基本数据类型 1. int ==> 整数,主要?来进?数学运算 2. str ==> 字符串,可以保存少量数据并进?相应的操作 3. bool==>判断真假,True,False 4. list==> 存储?量数据,?[ ]表? 5. tuple=> 元组,不可以发?改变?( )表? 6. dict==> 字典,保存键值对,?样可以保存?量数据 7. set==> 集合,保存?量数据,不可以重复,其实就是不保存value的dict 2. 整数(int) 在p