Giter Site home page Giter Site logo

conan-hpx's People

Contributors

darcamo avatar

Watchers

 avatar

conan-hpx's Issues

Getting undefined reference to __real_main, when linking hello world.

Hello! Something must be off with the generated linking order.

app.cpp

#include <hpx/hpx_main.hpp>
#include <hpx/include/iostreams.hpp>

int main()
{
    // Say hello to the world!
    hpx::cout << "Hello World!\n" << hpx::flush;
    return 0;
}

CMakeLists.txt

set(APP app)
set(SOURCES app.cpp )
set(HEADERS app.h )

add_executable(${APP} ${SOURCES} ${HEADERS})
target_link_libraries(${APP} CONAN_PKG::hpx)

Build error:

cmake --build . --config Release
...
/home/alex/.conan/data/hpx/1.2.1/darcamo/stable/package/ac774da5454e535546e6d508242f67214e935b43/lib/libhpx_wrap.a(hpx_wrap.cpp.o): In function `hpx_start::hpx_entry(int, char**)':
hpx_wrap.cpp:(.text+0x12): undefined reference to `__real_main'
/home/alex/.conan/data/hpx/1.2.1/darcamo/stable/package/ac774da5454e535546e6d508242f67214e935b43/lib/libhpx_wrap.a(hpx_wrap.cpp.o): In function `__wrap_main':
hpx_wrap.cpp:(.text+0x4f9): undefined reference to `__real_main'
collect2: error: ld returned 1 exit status

Any clues as to what the issue might be?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.