aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorseyko <seyko2@gmail.com>2015-04-16 07:30:24 +0300
committerseyko <seyko2@gmail.com>2015-04-16 07:30:24 +0300
commitb472d53672bb8840511cc6d59316c5ea435a396e (patch)
tree7e54bbb32ea23136fdc32775933429176820b19a
parentaeaff94ec1dba0096d7b943ad7c963d9d574d922 (diff)
downloadtinycc-b472d53672bb8840511cc6d59316c5ea435a396e.tar.gz
tinycc-b472d53672bb8840511cc6d59316c5ea435a396e.tar.bz2
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'
-rw-r--r--libtcc.c2
-rw-r--r--tcc.c2
-rw-r--r--tccpp.c3
3 files changed, 3 insertions, 4 deletions
diff --git a/libtcc.c b/libtcc.c
index de19a64..90dd185 100644
--- a/libtcc.c
+++ b/libtcc.c
@@ -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++;
}
}
diff --git a/tcc.c b/tcc.c
index c712144..aacbd42 100644
--- a/tcc.c
+++ b/tcc.c
@@ -317,7 +317,7 @@ int main(int argc, char **argv)
const char *filename = s->files[i] + 1;
if (filename[0] == '-' && filename[1] == 'l') {
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;
}
} else {
diff --git a/tccpp.c b/tccpp.c
index e3c9910..b0f4102 100644
--- a/tccpp.c
+++ b/tccpp.c
@@ -1441,13 +1441,12 @@ static void pragma_parse(TCCState *s1)
next();
tok = TOK_LINEFEED;
} 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 {
tcc_warning("#pragma comment(lib) is ignored");
}
}
-
}
/* is_bof is true if first non space token at beginning of file */