Author Topic: Windows SDK used from GCC  (Read 539 times)

Offline sergioferrari52

  • Single posting newcomer
  • *
  • Posts: 8
Windows SDK used from GCC
« on: December 18, 2020, 12:56:21 am »
I use Code::Blocks with GCC toolchain installed from MSYS2 on Windows 10.
The actual version of C::B is the last nightly and GCC installed is 10.2.0.
In a Win32 application, including the Windows header, CB opened a pop-up window that proposed many windows headers.
I'm not an expert on the many Microsoft libraries and apart from the classics <windows.h> and <windowsx.h> I don't know what the other headers are for.
I now have two questions:
1) Which Win32 SDK uses GCC MinGW? An original Microsoft SDK or its own implementation?
2) CB (and therefore the GCC compiler) can use headers that appear in the pop-up window (and its libraries) ?

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13007
    • Travis build status
Re: Windows SDK used from GCC
« Reply #1 on: December 18, 2020, 02:19:28 am »
CB is not a compiler. The answers to most of these questions could be answered by your compiler vendor.

We can partially answer 2.
I think C::B asks the compiler for its search paths and then searches those.
It also searches the paths specified in global compiler settings and in your project settings.

So if it sees a file you probably could include it, but it might require linking some other files it might not be meant to be included.
If it doesn't work check the documentation of your compiler or the sdk you're using.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7056
    • My Best Post
Re: Windows SDK used from GCC
« Reply #2 on: December 18, 2020, 12:07:00 pm »
CB is not a compiler. The answers to most of these questions could be answered by your compiler vendor.

The MSys2 folks will likely send you to the MinGW64 GCC folks; so, to save time I would go to MinGW64 for support on the Compiler.

The MSys2 folks are just packagers of MinGW64 GCC.

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline nenin

  • Almost regular
  • **
  • Posts: 126
Re: Windows SDK used from GCC
« Reply #3 on: December 29, 2020, 10:23:15 am »