Re: [PATCH] Modify mingw_main() workaround to avoid link errors
- From
Steffen Prohaska <prohaska@zib.de>
- Date
- Jul 26, 2008, 21:36 UTC
- Message-ID
- <4CCD1862-48FB-412B-80B6-E1B822BF3A87@zib.de>
- In-Reply-To
- <1217104655.488b8b0f5ca48@webmail.nextra.at>
On Jul 26, 2008, at 10:37 PM, Johannes Sixt wrote:
Show 15 quoted lines
> Zitat von Steffen Prohaska <prohaska@zib.de>: >> 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.
Steffen