clarify error message when library not found

a prior error message: cannot find 'program_resolve_lib'
    after a patch: cannot find library 'libprogram_resolve_lib'
This commit is contained in:
seyko
2015-04-16 07:30:24 +03:00
parent aeaff94ec1
commit b472d53672
3 changed files with 3 additions and 4 deletions

View File

@ -846,7 +846,7 @@ LIBTCCAPI int tcc_compile_string(TCCState *s, const char *str)
const char *filename = s->files[i] + 1;
if (filename[0] == '-' && filename[1] == 'l') {
if (tcc_add_library(s, filename + 2) < 0) {
tcc_warning("cannot find '%s'", filename+2);
tcc_warning("cannot find library 'lib%s'", filename+2);
ret++;
}
}