How to declare global pointers like gSystem?

__when i use root library to write garfield++ code, the global pointer gSystem was used:
gSystem->Load(“libGeom”);
after compiling the code, the error occured:

error: ‘gSystem’ was not declared in this scope; did you mean ‘system’?

how to declare the global pointers like gSystem?

_
Please read tips for efficient and successful posting and posting code

ROOT Version: 6.22/06
Platform: ubuntu 20.04
_Compiler:_Gcc 9.3.0


#include "TSystem.h"

@ Wile_E_Coyote,thanks!

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