Inside Bitcoin
Opening the selected file…
Opening the selected file…
The code behind the network, with room to understand it.
Release published 2026-10-28 · Snapshot fetched 2026-11-01. Latest stable release at fetch time; development branches and Git history are excluded. Only the selected code window and visible folders load here.
1Avoid defining QT_NEEDS_QMAIN macro3Qt's QT_NEEDS_QMAIN macro renames our main() function to qMain(),4which breaks our assumptions regarding exported symbols. In particular,5the CONTROL_FLOW security check fails for Windows builds in Guix.7The QT_NEEDS_QMAIN macro is required for linking to the Qt DLLs only,8so we can safely disable it.11--- a/qtbase/src/entrypoint/CMakeLists.txt12+++ b/qtbase/src/entrypoint/CMakeLists.txt13@@ -105,8 +105,6 @@ if(WIN32)14APPEND PROPERTY INTERFACE_QT_MODULE_LDFLAGS "-lmingw32"15)17- target_compile_definitions(EntryPointPrivate INTERFACE QT_NEEDS_QMAIN)18- qt_internal_extend_target(EntryPointImplementation DEFINES QT_NEEDS_QMAIN)19endif()21qt_internal_add_sync_header_dependencies(EntryPointImplementation Core)
Independent explanations by MyBitcoinExplorer. Not affiliated with or endorsed by Bitcoin Core. Guides are educational and do not replace the source or its tests.
Bitcoin Core source © its contributors, distributed under the MIT license. Original notices and bundled third-party licenses are retained in the source tree.