so why even Fpc supports static linking of c object files
Object files are not linked to language. You can perfectly link with object files produced by any compiler for any language, as long as the format is compatible.
and why there is a tool h2paspp.exe
It's for h2pas to run, to help converting C header files to Pascal units.
if you do not like c/c++ , sometimes you need some c code , so instead of compile externally it with gcc , you can inline it with your free pascal code.
i think it is not a bad idea.
It's a really damn bad idea, it complicates the compiler, it introduces additional dependencies to external tools (OK, we have this feature, people with no C compiler then try it, then it doesn't work, what would they say? ship C compiler with FPC installation? nuts!). It's not just an opinion, it's an objection!
