developing custom bord core(esp32 base)

I'm writing a new Arduino custom bord core, it is also using esp32 base device. so I get Arduino-esp32 core and adding my modification for it. I need to access my new function and objects form Arduino default editor(without creating an object in Arduino editor)

Ex- Serial.print() like I want to access Myobject.myMethod.

I create some global object using extern keyword, I can access it from esp32 core main.cpp and other core files
specially I can access my object also main.cpp -> Tasktask -> setup or loop (main programme bind with Arduino editor )

but I can't access it form Arduino editor, it gives error "undefined reference"
I try to find documentation for how to pass editor code to Arduino core, but I can't find it,
anyone have a solution for it or relevant doc please help me

It's not clear to me what your asking. I think you'll have a better chance of getting help if you provide specific details of exactly what you're trying to do.

isharathilina:
I create some global object using extern keyword

That doesn't create an object, it declares it. You have to define it as well, in a CPP file somewhere, otherwise you get "undefined reference".

Pieter

pert:
It's not clear to me what your asking. I think you'll have a better chance of getting help if you provide specific details of exactly what you're trying to do.

pert:
It's not clear to me what your asking. I think you'll have a better chance of getting help if you provide specific details of exactly what you're trying to do.

Thanks dear, I want to, when select my bord from Arduino ide, call my core objects and function directly (without creating any objects in arduino editor or include hedders)

like these

but I define it core and I can access in the core
like these

my question is how to access it from Arduino editor without creating an object in editor, (like Serial Object)