pmed / v8pp

Bind C++ functions and classes into V8 JavaScript engine
http://pmed.github.io/v8pp/
Other
901 stars 121 forks source link

file missing config.hpp #196

Closed Eunsolfs closed 1 year ago

Eunsolfs commented 1 year ago

config.hpp file is missing ,can`t compile

tranqu1lizer commented 1 year ago

same problem

Eunsolfs commented 1 year ago

I changed the filename of config.hpp.in into config.hpp to solve this problem

---- Replied Message ---- | From | @.> | | Date | 05/14/2023 13:05 | | To | @.> | | Cc | @.>、State @.> | | Subject | Re: [pmed/v8pp] file missing config.hpp (Issue #196) |

same problem

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you modified the open/close state.Message ID: @.***>

tranqu1lizer commented 1 year ago

I changed the filename of config.hpp.in into config.hpp to solve this problem ---- Replied Message ---- | From | @.> | | Date | 05/14/2023 13:05 | | To | @.> | | Cc | @.>、State @.> | | Subject | Re: [pmed/v8pp] file missing config.hpp (Issue #196) | same problem — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you modified the open/close state.Message ID: @.***>

i tried already but got these errors image

Eunsolfs commented 1 year ago

It’s not enough to just modify the file extension, you need to do other steps—perfect the parameters in the config.hpp file.

Below is the link of my config.hpp file, you can refer to

https://godbolt.org/z/3fY8G794K

Eunsolfs commented 1 year ago

t’s not enough to just modify the file extension, you need to do other steps—perfect the parameters in the config.hpp file.

Below is the link of my config.hpp file, you can refer to

https://godbolt.org/z/3fY8G794K

t’s not enough to just modify the file extension, you need to do other steps—perfect the parameters in the config.hpp file.

Below is the link of my config.hpp file, you can refer to

https://godbolt.org/z/3fY8G794K

Aincvy commented 11 months ago

In my case, #define V8PP_ISOLATE_DATA_SLOT 0 is fine, but 33826 not.

The code std::cout << "number of slots: " << isolate->GetNumberOfDataSlots() << std::endl; gives me number of slots: 4