Forum > Windows

Error: Undefined symbol: .Lj3850

(1/1)

d2010:
Hello
I import  my project .. after Delphi3 and Bds7.0
How I fix thsi error?
My OperatingIOs=Win7 x64 and LAzarus2.2

440bx:

--- Quote from: d2010 on June 09, 2022, 10:40:18 am ---I import  my project .. after Delphi3 and Bds7.0

--- End quote ---
Somewhere in your _original_ project (Delphi3/Bds7.0), there is an identifier by the name of Lj3850 that didn't make it into the port.

Determine where in the original project the identifier Lj3850 is defined and the files in which it is used and ensure that those files (particularly the one where it is defined) are part of the port.

HTH.

korba812:
.Lj3850 sounds like a compiler generated label in the resulting assembler code. It may be the compiler's fault. Try to compile your project with code optimization turned off (-O- command line parameter).

d2010:

--- Quote from: korba812 on June 09, 2022, 12:08:42 pm ---.Lj3850 sounds like a compiler generated label in the resulting assembler code. It may be the compiler's fault. Try to compile your project with code optimization turned off (-O- command line parameter).

--- End quote ---
This  solution is good?

--- Code: ---1) search Lj3890 inside *.o. My result is adm_ceval.o
2) I rename one variabile name onto Lj3894
3) Lazarus->Compiler>Cleanup and Build (again)

--- End code ---

PascalDragon:

--- Quote from: d2010 on June 14, 2022, 12:29:20 pm ---
--- Quote from: korba812 on June 09, 2022, 12:08:42 pm ---.Lj3850 sounds like a compiler generated label in the resulting assembler code. It may be the compiler's fault. Try to compile your project with code optimization turned off (-O- command line parameter).

--- End quote ---
This  solution is good?

--- Code: ---1) search Lj3890 inside *.o. My result is adm_ceval.o
2) I rename one variabile name onto Lj3894
3) Lazarus->Compiler>Cleanup and Build (again)

--- End code ---

--- End quote ---

No. If the compiler (or more precisely linker) tells you that such a symbol is missing this more often than not points to a bug of the compiler which most of the time occurs in context of optimizations. So as korba812 said, disable optimizations and try again (if that works, then it's some optimization bug). You can also check whether the development version of FPC shows this behaviour as well. If it's indeed a bug then it would be great if you'd reduce your code to only the buggy part and report a bug here.

Navigation

[0] Message Index

Go to full version