Boost logo

Boost Users :

Subject: [Boost-users] Boost and v8
From: Daniel Burchardt (danielburchardt_at_[hidden])
Date: 2016-02-05 04:56:41


I try create v8 module to python used boost and i have problem:

#include <iostream>

using namespace std;

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "include/libplatform/libplatform.h"
#include "include/v8.h"

using namespace v8;

const char* say_hello(const char* name) {
    return name;

#include <boost/python/module.hpp>
#include <boost/python/def.hpp>
#include <boost/python/class.hpp>

using namespace boost::python;

    class_<V8, boost::noncopyable>("V8", no_init)
    .def("Initialize", &V8::Initialize).staticmethod("Initialize");

    def("say_hello", say_hello);

compile process is ok but when i try import hello in python i see error:

/ undefined symbol: _ZN2v82V810InitializeEv

Thanks for help

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at