weixin_41493107
weixin_41493107
2017-12-31 05:42

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

20
  • 编译器

#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 秒) ===|

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

3条回答