-
April 15th, 2004, 08:09 AM
#1
compile error on wrong line
Hello,
I use Microsoft Visual C++ .NET (version 7.1.3088)
Sometimes (with big codes?) when I get a compile error and click on the error, the cursor is placed next to the wrong piece of code. The line number in the error message and that of the cursor do match but the real error is somewhere else.
The same I get when debugging my code, the piece of code the cursor is at is no way the code that is actually debugged.
This is very frustating!
I re-compiled the complete project but this does not help!
Any suggestions?
Thanx in advance
-
April 22nd, 2004, 08:41 AM
#2
Problem solved by
Hendrik Schober and Ronald Laeremans [MSFT]
(In: microsoft.public.dotnet.languages.vc)
I've seen this happening when the code has mixed line endings.
i.e. /r versus /n versus /r/n versus /n/r at the end of your lines
-
August 30th, 2005, 04:30 PM
#3
Re: compile error on wrong line
-
August 31st, 2005, 12:34 PM
#4
Re: compile error on wrong line
bobfromb is exactly right... I had ftp'd the file from a unix server in binary mode and had a few \r\n's in the code. I used editplus to remove all of the \r characters, rebuilt, and now my code debugger uses the correct line numbers. thanks bobfromb -- good call.
-
August 31st, 2005, 01:12 PM
#5
Re: compile error on wrong line
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|