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
846 const char *filename = s->files[i] + 1;846 const char *filename = s->files[i] + 1;
847 if (filename[0] == '-' && filename[1] == 'l') {847 if (filename[0] == '-' && filename[1] == 'l') {
848 if (tcc_add_library(s, filename + 2) < 0) {848 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);
850 ret++;850 ret++;
851 }851 }
852 }852 }
tcc.c+1−1
@@ -317,7 +317,7 @@ int main(int argc, char **argv) · 316 unmodified lines
317 const char *filename = s->files[i] + 1;317 const char *filename = s->files[i] + 1;
318 if (filename[0] == '-' && filename[1] == 'l') {318 if (filename[0] == '-' && filename[1] == 'l') {
319 if (tcc_add_library(s, filename + 2) < 0) {319 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);
321 ret = 1;321 ret = 1;
322 }322 }
323 } else {323 } else {
tccpp.c+1−2
@@ -1441,13 +1441,12 @@ static void pragma_parse(TCCState *s1) · 1440 unmodified lines
1441 next();1441 next();
1442 tok = TOK_LINEFEED;1442 tok = TOK_LINEFEED;
1443 } else {1443 } 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));
1445 }1445 }
1446 } else {1446 } else {
1447 tcc_warning("#pragma comment(lib) is ignored");1447 tcc_warning("#pragma comment(lib) is ignored");
1448 }1448 }
1449 }1449 }
1450
1451}1450}
1452 1451
1453/* is_bof is true if first non space token at beginning of file */1452/* 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