all groups > dotnet clr > july 2007 >
You're in the

dotnet clr

group:

compiler problem


compiler problem Allen Maki
7/10/2007 11:59:52 AM
dotnet clr:
My compiler is acting up. When I have building error, the left margin
pointer will point to the wrong line. Sometimes, the deferent between the
line that has the error and the line it pointed to can be more than twenty
lines.



Sometimes, It will give error message for something that I commented (//).

As soon as I delete the commented line, the building error will disappear .

Re: compiler problem Allen Maki
7/12/2007 6:00:56 PM
Hi Goran,

I tried to find a release mode, but could not find it. I am using V C++
..NET 2003.

Thanks.


[quoted text, click to view]

Re: compiler problem Allen Maki
7/12/2007 6:28:23 PM
I just found the problem thanks to Brad (god bless his heart). You have to
do the following:

RESOLUTION
1. Open the source file in the Visual Studio .NET editor.
2. On the File menu, click Advanced Save Options.
3. In the Line Endings list box, click Windows (CR LF), and then click OK.
4. Save the file.
5. Compile the project.




[quoted text, click to view]

Re: compiler problem Göran_Andersson
7/12/2007 8:09:49 PM
[quoted text, click to view]

I think that is a problem with Visual Studio rather than the compiler.
Sometimes it seems like it doesn't clear the list of errors before
compiling, so that you get a mix of old errors and new.

Try to switch between debug mode and release mode and see if the error
list clears up.

--
Göran Andersson
_____
AddThis Social Bookmark Button