# Using experimental features in VS Code

**URL:** <https://root-forum.cern.ch/t/using-experimental-features-in-vs-code/63538>\
**Category:** Newbie\
**Created:** [May 12, 2025, 3:56pm UTC](https://root-forum.cern.ch/t/using-experimental-features-in-vs-code/63538 "2025-05-12T15:56:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![multivac](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/multivac/32/38931_2.png) [@multivac](https://root-forum.cern.ch/u/multivac)\
**Post date:** [May 12, 2025, 3:56pm UTC](https://root-forum.cern.ch/t/using-experimental-features-in-vs-code/63538/1 "2025-05-12T15:56:16Z")

</div>

I am trying to use the experimental RNTuple feature. It seems to work when I use a ROOT interactive session, but RNTuple libraries don’t seem to be found by my C++ project in VS Code, despite other ROOT libraries being found and working properly. I get many linking errors such as

build] /usr/bin/ld: libQwAnalysis.so: undefined reference to `ROOT::Experimental::RNTupleWriter::~RNTupleWriter()’

[build] /usr/bin/ld: libQwAnalysis.so: undefined reference to `vtable for ROOT::Experimental::RSimpleField’

[build] /usr/bin/ld: libQwAnalysis.so: undefined reference to `vtable for ROOT::Experimental::RFieldBase’

[build] /usr/bin/ld: libQwAnalysis.so: undefined reference to `ROOT::Experimental::Internal::GenerateColumnElement(std::type\_index, ROOT::Experimental::EColumnType)’

[build] /usr/bin/ld: libQwAnalysis.so: undefined reference to `ROOT::Experimental::RFieldBase::BindValue(std::shared\_ptr)’

[build] /usr/bin/ld: libQwAnalysis.so: undefined reference to `ROOT::Experimental::RFieldBase::AcceptVisitor(ROOT::Experimental::Detail::RFieldVisitor&) const’

[build] /usr/bin/ld: libQwAnalysis.so: undefined reference to `ROOT::Experimental::RNTupleModel::Create()’

[build] /usr/bin/ld: libQwAnalysis.so: undefined reference to `vtable for ROOT::Experimental::RFieldZero’

[build] /usr/bin/ld: libQwAnalysis.so: undefined reference to `ROOT::Experimental::RSimpleField::ConstructValue(void\*) const’

[build] /usr/bin/ld: libQwAnalysis.so: undefined reference to `ROOT::Experimental::RFieldBase::AppendImpl(void const\*)’

Here is the relevant part of my my cmakelists file:  
set(minimum\_root\_version 6.22)

find\_package(ROOT ${minimum\_root\_version} REQUIRED New Gui)

config\_add\_dependency(ROOT ${minimum\_root\_version})

I am trying to include the libraries as  
#include “TH1.h”

#include “ROOT/RNTuple.hxx”

#include “ROOT/RNTupleModel.hxx”

#include “ROOT/RNTupleWriter.hxx”

ROOT version: 6.34.04  
Platform: Ubuntu 24.04.2 LTS,  
VS Code Version: 1.99.3

Any help would be appreciated.

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [May 13, 2025, 7:42am UTC](https://root-forum.cern.ch/t/using-experimental-features-in-vs-code/63538/2 "2025-05-13T07:42:34Z")

</div>

I guess @jblomer can help you.

---

<div class="post-metadata">

**Author:** ![silverweed](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/silverweed/32/36670_2.png) [@silverweed](https://root-forum.cern.ch/u/silverweed)\
**Post date:** [May 13, 2025, 7:53am UTC](https://root-forum.cern.ch/t/using-experimental-features-in-vs-code/63538/3 "2025-05-13T07:53:05Z")

</div>

Hello @multivac,  
in order to link to the RNTuple library you need to explicitly add `-lROOTNTuple` to your command line when compiling.  
So in your CMakeLists.txt you can add:

```auto
find_package(ROOT ${minimum_root_version} REQUIRED New Gui ROOTNTuple)
# ...
target_link_libraries(<your project> PRIVATE ROOT::ROOTNTuple)

```
