Created
January 15, 2023 15:14
-
-
Save jeroen/4e73dbc10dbe4ad3ef3ada9d5c0b425a to your computer and use it in GitHub Desktop.
libcxx / v8-devel linking error on Fedora
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# syntax=docker/dockerfile:1.3-labs | |
FROM fedora:36 | |
COPY <<EOF test.cpp | |
#include <libplatform/libplatform.h> | |
#include <v8.h> | |
using namespace v8; | |
int main(){ | |
std::unique_ptr<Platform> platform = platform::NewDefaultPlatform(); | |
V8::InitializePlatform(platform.get()); | |
} | |
EOF | |
RUN dnf install -q -y clang libcxx-devel v8-devel | |
RUN clang++ test.cpp -std=gnu++17 -stdlib=libc++ -lv8 -lv8_libplatform |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment