|
From: KURT P. <pet...@ms...> - 2011-06-17 22:14:29
|
I'm using MingW with largely the default config with eclipse CDT, mingW 4.5.0, on windows XP. I did a quick "hello world" test which ran nicely. I then went to compile cgic.c from boutelle's web site, mentioned in this article: http://www.linuxjournal.com/article/6863. When compiling it, I get the following error: COLLECT_GCC_OPTIONS='-IC:\eclipse\workspacens\include\cgic205' '-O1' '-Wall' '-c' '-fmessage-length=0' '-v' '-MMD' '-MP' '-MFsrc/cgic.d' '-MTsrc/cgic.d' '-o' 'src/cgic.o' '-mtune=i386' '-march=i386' c:/mingw/bin/../lib/gcc/mingw32/4.5.0/../../../../mingw32/bin/as.exe -o src/cgic.o C:\DOCUME~1\kpeters\LOCALS~1\Temp\ccZdExdz.s C:\DOCUME~1\kpeters\LOCALS~1\Temp\ccZdExdz.s: Assembler messages: C:\DOCUME~1\kpeters\LOCALS~1\Temp\ccZdExdz.s:5238: Error: junk at end of line, first unrecognized character is `,' C:\DOCUME~1\kpeters\LOCALS~1\Temp\ccZdExdz.s:5239: Error: junk at end of line, first unrecognized character is `,' C:\DOCUME~1\kpeters\LOCALS~1\Temp\ccZdExdz.s:5240: Error: junk at end of line, first unrecognized character is `,' C:\DOCUME~1\kpeters\LOCALS~1\Temp\ccZdExdz.s:5241: Error: junk at end of line, first unrecognized character is `,' C:\DOCUME~1\kpeters\LOCALS~1\Temp\ccZdExdz.s:5242: Error: junk at end of line, first unrecognized character is `,' C:\DOCUME~1\kpeters\LOCALS~1\Temp\ccZdExdz.s:5243: Error: junk at end of line, first unrecognized character is `,' C:\DOCUME~1\kpeters\LOCALS~1\Temp\ccZdExdz.s:5244: Error: junk at end of line, first unrecognized character is `,' C:\DOCUME~1\kpeters\LOCALS~1\Temp\ccZdExdz.s:5245: Error: junk at end of line, first unrecognized character is `,' C:\DOCUME~1\kpeters\LOCALS~1\Temp\ccZdExdz.s:5246: Error: junk at end of line, first unrecognized character is `,' C:\DOCUME~1\kpeters\LOCALS~1\Temp\ccZdExdz.s:5247: Error: junk at end of line, first unrecognized character is `,' C:\DOCUME~1\kpeters\LOCALS~1\Temp\ccZdExdz.s:5248: Error: junk at end of line, first unrecognized character is `,' C:\DOCUME~1\kpeters\LOCALS~1\Temp\ccZdExdz.s:5249: Error: junk at end of line, first unrecognized character is `,' C:\DOCUME~1\kpeters\LOCALS~1\Temp\ccZdExdz.s:5250: Error: junk at end of line, first unrecognized character is `,' C:\DOCUME~1\kpeters\LOCALS~1\Temp\ccZdExdz.s:5251: Error: junk at end of line, first unrecognized character is `,' C:\DOCUME~1\kpeters\LOCALS~1\Temp\ccZdExdz.s:5252: Error: junk at end of line, first unrecognized character is `,' C:\DOCUME~1\kpeters\LOCALS~1\Temp\ccZdExdz.s:5253: Error: junk at end of line, first unrecognized character is `,' C:\DOCUME~1\kpeters\LOCALS~1\Temp\ccZdExdz.s:5254: Error: junk at end of line, first unrecognized character is `,' C:\DOCUME~1\kpeters\LOCALS~1\Temp\ccZdExdz.s:5255: Error: junk at end of line, first unrecognized character is `,' C:\DOCUME~1\kpeters\LOCALS~1\Temp\ccZdExdz.s:5256: Error: junk at end of line, first unrecognized character is `,' C:\DOCUME~1\kpeters\LOCALS~1\Temp\ccZdExdz.s:5257: Error: junk at end of line, first unrecognized character is `,' C:\DOCUME~1\kpeters\LOCALS~1\Temp\ccZdExdz.s:5258: Error: junk at end of line, first unrecognized character is `,' C:\DOCUME~1\kpeters\LOCALS~1\Temp\ccZdExdz.s:5259: Error: junk at end of line, first unrecognized character is `,' C:\DOCUME~1\kpeters\LOCALS~1\Temp\ccZdExdz.s:5260: Error: junk at end of line, first unrecognized character is `,' C:\DOCUME~1\kpeters\LOCALS~1\Temp\ccZdExdz.s:5261: Error: junk at end of line, first unrecognized character is `,' make: *** [src/cgic.o] Error 1 I checked the outputed assembler and those lines correspond to the following lines which are all static variables in the cgic: > .comm _cgiServerSoftware, 4, 2 > .comm _cgiServerName, 4, 2 > .comm _cgiGatewayInterface, 4, 2 > .comm _cgiServerProtocol, 4, 2 > .comm _cgiServerPort, 4, 2 > .comm _cgiRequestMethod, 4, 2 > .comm _cgiPathInfo, 4, 2 > .comm _cgiPathTranslated, 4, 2 > .comm _cgiScriptName, 4, 2 > .comm _cgiQueryString, 4, 2 > .comm _cgiRemoteHost, 4, 2 > .comm _cgiRemoteAddr, 4, 2 > .comm _cgiAuthType, 4, 2 > .comm _cgiRemoteUser, 4, 2 > .comm _cgiRemoteIdent, 4, 2 > .comm _cgiAccept, 4, 2 > .comm _cgiUserAgent, 4, 2 > .comm _cgiReferrer, 4, 2 > .comm _cgiCookie, 4, 2 > .comm _cgiContentLength, 4, 2 > .comm _cgiOut, 4, 2 > .comm _cgiIn, 4, 2 > .comm _cgiContentTypeData, 1024, 5 > .comm _cgiMultipartBoundary, 4, 2 Any thoughts on what could be causing this? Kurt |