c++builder - 关于程序导出变量
问题描述
显卡厂商有优化方案。以下变量是从程序中导出的,程序会在独立显卡上执行。对于新版bcc编译器编译的程序,导出的变量带有下划线前缀,-vu
不支持参数。我不知道如何解决这个问题。
// http://developer.download.nvidia.com/devzone/devcenter/gamegraphics/files/OptimusRenderingPolicies.pdf
// The following line is to favor the high performance NVIDIA GPU if there are multiple GPUs
// Has to be .exe module to be correctly detected.
extern "C" __declspec(dllexport) DWORD NvOptimusEnablement = 0x00000001;
// And the AMD equivalent
// Also has to be .exe module to be correctly detected.
extern "C" __declspec(dllexport) int AmdPowerXpressRequestHighPerformance = 0x00000001;
bcc32 旧版本
bcc32c 新版本
解决方案
推荐阅读
- wso2 - WSO2 APIM 3.1.0 服务器无法启动并出现 Qpid 错误
- flutter - 在 Flutter 中将图像添加到 ListTile - 具体问题
- docker - 从在线教程创建我的第一个 Docker 映像时,我收到此错误
- r - 读取大型 csv 文件并加入 r
- memory-leaks - 当我重新启动我的电脑时,堆内存会被释放吗?
- django - 扩展组模型的嵌套序列化程序在用户序列化程序中缺少某些字段
- javascript - 停止在三个 JS 中长距离加载对象
- python - 根据某些条件从字典的python字典中删除键
- linux - 两个列表之间的 grep
- python - Django 模板中的日期和时间