How can I add function at other file? #12552

issue leegod opened this issue on February 27, 2018
  1. leegod commented at 5:53 AM on February 27, 2018: none

    I am using ubuntu within VirtualBox from windows10.

    For example, how can I use "CheckProofOfWork" function from pow.cpp at chainparams.cpp?

    I added #include "pow.h" at chainparams.cpp, but after this and when I tried compile with 'make' at terminal, error says there is no definition of that function...

    Is this C++'s linker problem? Then how to solve this?

  2. sipa commented at 5:55 AM on February 27, 2018: member

    This is a place to report issues, not for learning basic C++.

    You may find help on sites like stackoverflow.

  3. sipa closed this on Feb 27, 2018

  4. MarcoFalke locked this on Sep 8, 2021
Contributors

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-22 09:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me