Opencv and output

i want to create a program with only opencv included, and i want to create my own output
function without any standard library included. Can anyone help how can i do that? (i tried with: extern “C” int printf(const char*) but i cant print numbers with it)

that will never work.

to my knowledge, OpenCV itself assumes the STL to be available.

why do you even wanna do that?

i want to do that because it was a challange for me to not use any standard library.
Thank you for your help.

ah, you merely want to not use it, but it’s okay if OpenCV uses it?

well then, that’s not an OpenCV issue. please find a general programming forum. they’ll help you use printf instead of std::cout