History

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'

seyko committed 11 years ago

Commit b472d531 parent aeaff943 files · +3 −4Browse files

Unified · Split

3 files
  1. libtcc.c +1 −1
  2. tcc.c +1 −1
  3. tccpp.c +1 −2
libtcc.c+1−1
@@ -846,7 +846,7 @@ LIBTCCAPI int tcc_compile_string(TCCState *s, const char *str) · 845 unmodified lines
846846 const char *filename = s->files[i] + 1;
847847 if (filename[0] == '-' && filename[1] == 'l') {
848848 if (tcc_add_library(s, filename + 2) < 0) {
849− tcc_warning("cannot find '%s'", filename+2);
849+ tcc_warning("cannot find library 'lib%s'", filename+2);
850850 ret++;
851851 }
852852 }
tcc.c+1−1
@@ -317,7 +317,7 @@ int main(int argc, char **argv) · 316 unmodified lines
317317 const char *filename = s->files[i] + 1;
318318 if (filename[0] == '-' && filename[1] == 'l') {
319319 if (tcc_add_library(s, filename + 2) < 0) {
320− tcc_error_noabort("cannot find '%s'", filename+2);
320+ tcc_error_noabort("cannot find library 'lib%s'", filename+2);
321321 ret = 1;
322322 }
323323 } else {
tccpp.c+1−2
@@ -1441,13 +1441,12 @@ static void pragma_parse(TCCState *s1) · 1440 unmodified lines
14411441 next();
14421442 tok = TOK_LINEFEED;
14431443 } else {
1444− tcc_warning("unknown #pragma %s", get_tok_str(tok, &tokc));
1444+ tcc_warning("unknown specifier '%s' in #pragma comment", get_tok_str(tok, &tokc));
14451445 }
14461446 } else {
14471447 tcc_warning("#pragma comment(lib) is ignored");
14481448 }
14491449 }
1450−
14511450 }
14521451
14531452 /* is_bof is true if first non space token at beginning of file */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t