Unexpected termination during compilation Module Seg#:offset OR Unexpected termination during linking Module Seg#:offset (C++)

From RAD Studio
Jump to: navigation, search

Go Up to Compiler Errors And Warnings (C++) Index

If either of these errors occur, it indicates a catastrophic failure of the C++Builder tools. You should contact Embarcadero to report the problem and to find a potential work around for your specific case. By isolating the test case as well as possible, you will increase the chance for either Embarcadero or yourself to find a work around for the problem.

Commonly, compiler failures can be worked around by moving the source code that is currently being compiled. Simple cases might be switching the order of variable declarations, or functions within the source module. Moving the scope and storage of variables also helps in many cases.

For linker failures, you can reduce the amount of debugging information that the linker has to work with. Try compiling only one or two modules with debug information instead of an entire project.

Similarly, switching the order in which object modules are handed to the linker can work around the problem. The IDE hands objects to the linker in the order that they are listed in the project tree. Try moving a source up or down in the list.