I get the following linker error when building a library
ar cru libicrt.a allocsa.obj progname.obj progreloc.obj width.obj xmalloc.obj
progreloc.obj : warning LNK4221: no public symbols found; archive member will be inaccessible.
This *.ibj is existing and was compiled without complaint.
Could you help?
This is a warning from the Microsoft Linker (‘ar’ is just a wrapper for LINK) stating that you have no public symbols in your object. Do you expect the symbols found in “progreloc.obj” to be externally accessible? If not, then you can ignore the warning. If so, then you should investigate why your symbols are all private. In either case, the linker will create the library.