Dev-Cpp icon indicating copy to clipboard operation
Dev-Cpp copied to clipboard

About exporting variables

Open sdragonx opened this issue 4 years ago • 1 comments
trafficstars

The graphics card manufacturer has an optimization scheme. The following variables are exported from the program, and the compiled program will be executed with an independent graphics card. For the program compiled by the new version of compiler, the exported variables are pre underlined, and the - Vu parameter is not supported. I don't know how to solve it.

`// 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;`

sdragonx avatar Aug 05 '21 17:08 sdragonx

bcc32 old version: QQ截图20210806013615

bcc32c new version: QQ截图20210806013529

sdragonx avatar Aug 05 '21 17:08 sdragonx