C++ NetworkTables - "incomplete type is not allowed"

Hi,

I am trying to port over some old code. The line nt::NetworkTableInstance::GetDefault(); causes a compile error, “incomplete type is not allowed”. I also noticed that the GetDefault() function is no longer in the documentation. Does anyone know how to use the table?

Any help would be greatly appreciated,
Vikesh
image

That code should still work. Are you getting a compile error or just an IntelliSense error? Do you have #include <networktables/NetworkTableInstance.h> in your code? GetDefault() definitely still exists.

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