标签:
minGW的编译执行命令:
1)wrong
网上所说的:比如 gcc -W -m64 main.c -o main.exe -I"C:/Program Files (x86)/Intel/OpenCL SDK/6.1/include" -L"C:/Program Files (x86)/Intel/OpenCL SDK/6.1/lib/x86" -lOpenCl
编译能成功,但是程序无法正常执行,提示16位程序无法在64位操作系统中运行
2)right
correct cmd: gcc -W -m64 main.c -o main.exe -I"C:/Program Files (x86)/Intel/OpenCL SDK/6.1/include" "C:/Windows/System32/OpenCL.dll"
tip:“- W” warning “-w” nowarning
OpenCL+minGW64+windows8.1 enviroment
标签:
原文地址:http://www.cnblogs.com/franklinNew/p/5691237.html