# Embedding libswiftFrontEnd

**URL:** <https://forums.swift.org/t/embedding-libswiftfrontend/33437>\
**Category:** Using Swift\
**Tags:** compiler, clang, llvm\
**Created:** [February 4, 2020, 8:56pm UTC](https://forums.swift.org/t/embedding-libswiftfrontend/33437 "2020-02-04T20:56:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tdermendjiev](https://avatars.discourse-cdn.com/v4/letter/t/cc9497/32.png) [@tdermendjiev](https://forums.swift.org/u/tdermendjiev)\
**Post date:** [February 4, 2020, 8:56pm UTC](https://forums.swift.org/t/embedding-libswiftfrontend/33437/1 "2020-02-04T20:56:26Z")

</div>

I am building a command line tool in C++ which I need to link against libswiftFrontEnd (and not only). Of course it depends on other libraries that are not linked so I am getting "Undefined symbols..." error. Is there something like llvm-config for swift that can help me list the libraries I need to link against? Can I use the swift compiler classes (as CompilerInstance, ASTWalker etc.) in my project the same way I can do it with LLVM/Clang (e.g. [How to write RecursiveASTVisitor based ASTFrontendActions. — Clang 16.0.0git documentation](https://clang.llvm.org/docs/RAVFrontendAction.html) )?
