#pragma comment(lib,"winmm.lib")出现warning

#include
#include
#include
#include
#pragma comment(lib,"winmm.lib")
#include
int main()
{
printf("hello,word!");
PlaySound(TEXT("sounds\HOT"),NULL,SND_FILENAME | SND_ASYNC | SND_LOOP);
printf("hello,word!");
Sleep(5000);
return 0;
}
出现了warning
||=== 构建: Debug 在 emperor 中 (编译器: GNU GCC Compiler) ===|
D:\codeblocks\emperor\main.c|5|warning: ignoring #pragma comment [-Wunknown-pragmas]|
||=== 构建 finished: 0 error(s), 1 warning(s) (0 分, 1 秒) ===|

公钥是通过微信api请求回来的,查了好多次,查不出问题公钥是通过微信api请求回来的,查了好多次,查不出问题

#pragma comment 导入类型库(tlb)这个标记写法,只有vc++才能认,gcc不认识。

这是一个库文件的应用,此是winmm即windows multy media(窗口多媒体),即最基本的如引用了mcisendstring()函数,若删除上行代码即会报错