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:
parent
aeaff94ec1
commit
b472d53672
3 changed files with 3 additions and 4 deletions
2
libtcc.c
2
libtcc.c
|
@ -846,7 +846,7 @@ LIBTCCAPI int tcc_compile_string(TCCState *s, const char *str)
|
||||||
const char *filename = s->files[i] + 1;
|
const char *filename = s->files[i] + 1;
|
||||||
if (filename[0] == '-' && filename[1] == 'l') {
|
if (filename[0] == '-' && filename[1] == 'l') {
|
||||||
if (tcc_add_library(s, filename + 2) < 0) {
|
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++;
|
ret++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
2
tcc.c
2
tcc.c
|
@ -317,7 +317,7 @@ int main(int argc, char **argv)
|
||||||
const char *filename = s->files[i] + 1;
|
const char *filename = s->files[i] + 1;
|
||||||
if (filename[0] == '-' && filename[1] == 'l') {
|
if (filename[0] == '-' && filename[1] == 'l') {
|
||||||
if (tcc_add_library(s, filename + 2) < 0) {
|
if (tcc_add_library(s, filename + 2) < 0) {
|
||||||
tcc_error_noabort("cannot find '%s'", filename+2);
|
tcc_error_noabort("cannot find library 'lib%s'", filename+2);
|
||||||
ret = 1;
|
ret = 1;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
3
tccpp.c
3
tccpp.c
|
@ -1441,13 +1441,12 @@ static void pragma_parse(TCCState *s1)
|
||||||
next();
|
next();
|
||||||
tok = TOK_LINEFEED;
|
tok = TOK_LINEFEED;
|
||||||
} else {
|
} else {
|
||||||
tcc_warning("unknown #pragma %s", get_tok_str(tok, &tokc));
|
tcc_warning("unknown specifier '%s' in #pragma comment", get_tok_str(tok, &tokc));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
tcc_warning("#pragma comment(lib) is ignored");
|
tcc_warning("#pragma comment(lib) is ignored");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* is_bof is true if first non space token at beginning of file */
|
/* is_bof is true if first non space token at beginning of file */
|
||||||
|
|
Loading…
Reference in a new issue