Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chapter03/can't use "ninja" #30

Open
kyasulee opened this issue Apr 11, 2024 · 0 comments
Open

Chapter03/can't use "ninja" #30

kyasulee opened this issue Apr 11, 2024 · 0 comments

Comments

@kyasulee
Copy link

When I use "ninja" after "cmake -G Ninja ..":

[6/6] Linking CXX executable src/calc FAILED: src/calc : && /usr/bin/c++ -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -fno-lifet ime-dse -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -Wim plicit-fallthrough -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept -type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-uns upported -fdiagnostics-color -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions src/CMakeFiles/c alc.dir/Calc.cpp.o src/CMakeFiles/calc.dir/CodeGen.cpp.o src/CMakeFiles/calc.dir/Lexer.cpp.o src/CMakeFiles/ calc.dir/parser.cpp.o src/CMakeFiles/calc.dir/Sema.cpp.o -o src/calc -L/usr/local/lib -Wl,-rpath,/usr/local/lib /usr/local/lib/libLLVMCore.so.19.0git -Wl,-rpath-link,/usr/local/lib && : /usr/bin/ld: src/CMakeFiles/calc.dir/Calc.cpp.o: undefined reference to symbol '_ZN4llvm11raw_ostream5writeEPKcm' /usr/bin/ld: /usr/local/lib/libLLVMSupport.so.19.0git: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status ninja: build stopped: subcommand failed.

@kyasulee kyasulee changed the title Chapter03 code doesn't build Chapter03/can't use "ninja" Apr 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant