On Tue, Jun 2, 2020 at 1:14 PM Al Mo <[email protected]> wrote: > > Hi all, > > I'm trying to build v8 from source in order to test/submit a cl later on, > > I followed this: https://v8.dev/docs/build > > It builds fine and in the end I have an 'out/x64.release' directory, which in > turn has the 'libv8_libbase.a' and 'libv8_libplatform.a' static libraries. > > When trying to link against these libraries, I get undefined symbol errors, > like: > > "v8::V8::Initialize(int)", referenced from: > > _main in main-df02fe.o > > "v8::V8::InitializePlatform(v8::Platform*)", referenced from: > > _main in main-df02fe.o > > "v8::V8::InitializeICUDefaultLocation(char const*, char const*)", > referenced from: > > _main in main-df02fe.o > > "v8::V8::InitializeExternalStartupData(char const*)", referenced from: > > _main in main-df02fe.o > > > Checking the libraries with 'nm -gAC lib...' shows me that the symbols are > not there at all, > > I am not familiar with gn and the configuration options of v8, hence why I'm > asking about it, > > Any idea what could be going on? > > Thanks.
There should be more than just those two archive files and link order matters, you may need to shuffle them around when linking. Can you post the output of `ls -l out/x64.release` and is there perhaps also an out.gn directory in the top-level directory? If there really aren't more *.a files, can you do a clean build and post the output? -- -- v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev --- You received this message because you are subscribed to the Google Groups "v8-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/v8-dev/CAHQurc_tMdENeMnSRq7FSWcBdQMHd2hWPzZa9jiQSyhMeV8bpA%40mail.gmail.com.
