implement #pragma comment(lib,...)

This commit is contained in:
Steven G. Messervey
2015-04-15 22:56:21 -04:00
parent e50d68e417
commit aeaff94ec1
4 changed files with 48 additions and 1 deletions

2
tcc.c
View File

@ -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);
tcc_error_noabort("cannot find '%s'", filename+2);
ret = 1;
}
} else {