c++ - Linker errors when disabling defauly lib and CRT -


i trying build c++ program without using crt getting following linker errors , cannot find solution online. can fix them enabling crt default lib defeats goal.

error lnk2001: unresolved external symbol __imp____acrt_iob_func error lnk2001: unresolved external symbol __imp____stdio_common_vfprintf 

disabling default lib totally new me , wondering if on here has came across these errors before , found solution?

you might find linkers , loaders interesting. answer question requires understanding difference between object file , executable program.

from simplest point of view, c++ doesn't define i/o in language. leaves library, typically default crt in case of windows. useful program has have input , create output. how without i/o?

programs run in context of operating system; these called hosted because os provides services , arranges them run on machine. specialized embedded programs -- maybe on microwave oven, example, or in car -- run directly on computer without aid of os. such embedded programs input , output hardware ports , interrupts, , don't have use functions in default runtime library.

if you're interested in developing embedded system or replacing crt else, want disable linking crt. better platform imo netbsd.


Comments

Popular posts from this blog

javascript - Create a stacked percentage column -

Optimising Firebase database by automatically overwriting data -

javascript - Angular UI-Grid customTemplate directive causing rows to load slowly/? -