Re: [PATCH] Modify mingw_main() workaround to avoid link errors
From: Johannes Sixt <hidden>
Date: 2016-06-15 22:45:04
Zitat von Steffen Prohaska [off-list ref]:
On Jul 27, 2008, at 9:24 PM, Johannes Sixt wrote:quoted
Zitat von Steffen Prohaska [off-list ref]:quoted
On Jul 26, 2008, at 10:37 PM, Johannes Sixt wrote:quoted
Zitat von Steffen Prohaska [off-list ref]:quoted
With MinGW's gcc.exe (GCC) 3.4.5 (mingw special) GNU ld version 2.17.50 20060824 the old define caused link errors: git.o: In function `main': C:/msysgit/git/git.c:500: undefined reference to `mingw_main' collect2: ld returned 1 exit status The modified define works.I have the same tools, but not this error. ???I cleaned my work tree and built several times but did not find out what exactly is causing the error. So I came up with the modified define, which declares the static mingw_main in global scope. I have no clue why I see the error that you don't have.Neither do I. But a strange line number you have there. In 01d9b2d (from mingw.git) I have 'exit(1)' in line 500 of git.c.I have the same in line 500. I am still wondering what this could mean. But I do not yet now :-(
Can you try 'make -k' and see whether you have a similar problem with the non-builtins that have their own main()? -- Hannes