Embarcadero / Dev-Cpp

A fast, portable, simple, and free C/C++ IDE
https://www.embarcadero.com/free-tools/dev-cpp
GNU General Public License v2.0
2.59k stars 282 forks source link

About exporting variables #167

Open sdragonx opened 3 years ago

sdragonx commented 3 years ago

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 commented 3 years ago

bcc32 old version: QQ截图20210806013615

bcc32c new version: QQ截图20210806013529