[go-nuts] Re: How to dllexport a value symbol within a windows binary executable with Go?

2017-02-20 Thread Hakan Guleryuz
20 00189220 AmdPowerXpressRequestHighPerformance 11 00189224 NvOptimusEnablement ... ... On Monday, January 30, 2017 at 5:47:51 PM UTC+3, Hakan Guleryuz wrote: > > For anyone who wants to build a windows .exe with go-sdl2 and opengl, and > has an optimus driver, and wan

[go-nuts] Re: How to dllexport a value symbol within a windows binary executable with Go?

2017-01-30 Thread Hakan Guleryuz
ol from .go file to the object file to be linked or maybe know how to limit the exported symbols in the final executable using gnu ld PE target options please comment. First in my main package I have these lines On Monday, January 23, 2017 at 7:13:30 PM UTC+3, Hakan Guleryuz wrote: > > In no

[go-nuts] How to dllexport a value symbol within a windows binary executable with Go?

2017-01-23 Thread Hakan Guleryuz
In normal C/C++ SDL2 related app I write, adding the following code extern "C" { _declspec(dllexport) DWORD NvOptimusEnablement = 0x0001; } causes the driver system with integrated and dedicated nvidia gpu, to auto select the dedicated nvidia gpu. See here for some explanation of the me