Skip to content

Instantly share code, notes, and snippets.

@jeroen
Created January 15, 2023 15:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeroen/4e73dbc10dbe4ad3ef3ada9d5c0b425a to your computer and use it in GitHub Desktop.
Save jeroen/4e73dbc10dbe4ad3ef3ada9d5c0b425a to your computer and use it in GitHub Desktop.
libcxx / v8-devel linking error on Fedora
# 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