Limelight C++ Network Table error

Hi

I have been using the example code in the limelight website

and a get a red squiggle line under the NetworkTable on this line

std::shared_ptr table = nt::NetworkTableInstance::GetDefault().GetTable(“limelight”);

I click on it and this is the error message I get

class std::shared_ptr<>

A smart pointer with reference-counted copy semantics. The object pointed to is deleted when the last shared_ptr pointing to it is destroyed or reset.

identifier “NetworkTable” is undefinedC/C++(20)

Thank you for your help

It’s an error in the docs, it’s missing a nt:: before NetworkTable.

Big Thank You

1 Like

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.