Posts

Showing posts with the label What is the qInitResources_bitcoin() function in Bitcoin core for?

What is the qInitResources_bitcoin() function in Bitcoin core for?

What is the qInitResources_bitcoin() function in Bitcoin core for? I am cloning the Bitcoin core repository and have successfully created my own genesis block from the code. Now I am at the stage of branding my coin (such as changing the name and images), to GELF (my own coin name). After running a recursive find and replace from bitcoin to GELF I have been running into a lot of reference errors that I have been fixing. However... I am running into a undefined reference to qInitResources_bitcoin() error, which is caused by bitcoin.cpp at line 548. The line is Q_INIT_RESOURCE(bitcoin); Nowhere in the bitcoin.cppfile is this function defined, and the bitcoin variable which is passed to this function is also not defined. I can see this line in the bitcoin code on github, so it hasn't magically appeared from nowhere. I can't find any material online to explain what it does, and no definitions anywhere. What does this function do? Where is it defined in the code? If I comment ...