English 中文(简体)
B. 巨大的C案 de问题
原标题:huge C file debugging problem

我的项目中有一份来源文件,其编码线超过65 536条(确切为112 444条)。 采用“s酸gam”的Im ,它出现在一个单一的庞大来源档案中。

I m2005年使用MSVC。 这些问题是在偷渡过程中产生的。 一切都汇编和连接ok。 但是,当我试图与变迁者一道工作时,这显示了一条不正确的法典线。

令人感兴趣的是,正确线号与夸张显示的数字之间的差别确实是65536。 这使我怀疑(几乎可以肯定)一些未签名的短程。

我还怀疑,它不是特别志愿人员委员会本身的一个丑恶。 也许会限制变幻式信息格式。 这就是说,劳动和社会保障部使用的假装信息格式将线数作为2个缩略语。

在这一点上,是否可以做任何事情(除了把大案卷削减到几个较小的档案之外)?

最佳回答

一位管理事务主持人认为,这是一个众所周知的问题,只有夸张(正如你指出的那样,汇编者似乎处理得当)。 除了使用较短的源文档外,显然没有任何工作关系。 See official response to very similar question here

问题回答

当我想看一下一下q木如何奏效时,我用了最后600 000条或这样一条线,将其移至另一个档案中,然后将其排在一边。 这对我来说是容易的,也是trick的。 而且,如果你这样做,就应谨慎避免在“Fifdef”内分裂。

你们是否考虑使用温非银? 视窗小组利用这个系统进行冲破办公室/S,在那里有一些双轨文件,或者至少是在我最后一次看过的时候。

For anyone having issues with incorrect line numbers for files < 65536 lines: I found my issue was because of inconsistent line endings in the source file. There were 129 newlines where the rest of the file was style. The difference between the debugger line and the correct line was 129 as well.

除非你改变态度,否则你就应当相信,你正在做自己的工作。 根本无需一步步。 电池在释放前经过大量试验。





相关问题
Undefined reference

I m getting this linker error. I know a way around it, but it s bugging me because another part of the project s linking fine and it s designed almost identically. First, I have namespace LCD. Then I ...

C++ Equivalent of Tidy

Is there an equivalent to tidy for HTML code for C++? I have searched on the internet, but I find nothing but C++ wrappers for tidy, etc... I think the keyword tidy is what has me hung up. I am ...

Template Classes in C++ ... a required skill set?

I m new to C++ and am wondering how much time I should invest in learning how to implement template classes. Are they widely used in industry, or is this something I should move through quickly?

Print possible strings created from a Number

Given a 10 digit Telephone Number, we have to print all possible strings created from that. The mapping of the numbers is the one as exactly on a phone s keypad. i.e. for 1,0-> No Letter for 2->...

typedef ing STL wstring

Why is it when i do the following i get errors when relating to with wchar_t? namespace Foo { typedef std::wstring String; } Now i declare all my strings as Foo::String through out the program, ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

Window iconification status via Xlib

Is it possible to check with the means of pure X11/Xlib only whether the given window is iconified/minimized, and, if it is, how?