You are not logged in.
Pages: 1
Hello, just trying to build the example project here in Manjaro Linux but I got a ld error. I'm not able to understand the real problem here. Thank you
Compile Project, Mode: Default, Target: /home/antonio/fpcupdeluxe/ccr/mORMot2/ex/mvc-blog/exe/MVCServer: Exit code 1, Errors: 2, Warnings: 1, Hints: 2
Hint: Start of reading config file /home/antonio/fpcupdeluxe/fpc/bin/x86_64-linux/fpc.cfg
Hint: End of reading config file /home/antonio/fpcupdeluxe/fpc/bin/x86_64-linux/fpc.cfg
Verbose: Free Pascal Compiler version 3.2.2-r0d122c49 [2024/02/28] for x86_64
Verbose: Copyright (c) 1993-2021 by Florian Klaempfl and others
Verbose: Target OS: Linux for x86-64
Verbose: Compiling MVCServer.dpr
Verbose: Compiling MVCModel.pas
Verbose: Compiling MVCViewModel.pas
Verbose: Writing Resource String Table file: MVCViewModel.rsj
Verbose: Linking /home/antonio/fpcupdeluxe/ccr/mORMot2/ex/mvc-blog/exe/MVCServer
Warning: linker: /usr/bin/ld: /home/antonio/fpcupdeluxe/ccr/mORMot2/ex/mvc-blog/lib/x86_64-linux/MVCViewModel.o: in function `.La6':
Error: MVCViewModel.pas:(.debug_info+0x36c): undefined reference to `DBG2_$MORMOT.REST.MVC_$$_IMVCAPPLICATION'
MVCServer.dpr(85,1) Error: Error while linking
MVCServer.dpr(85,1) Verbose: There were 1 errors compiling module, stopping
Verbose: Compilation aborted
Verbose: /home/antonio/fpcupdeluxe/fpc/bin/x86_64-linux/ppcx64 returned an error exitcode
p.s. Windows is fine.
Last edited by slapshot (2024-03-24 14:57:48)
Offline
I am not able to reproduce it here.
Perhaps something wrong with your compiler?
How did you compile it?
Or did you try to force a rebuild of the package?
Or perhaps try to switch your debug info to Dwarf 3.
I guess the problem may be from Dwarf 2 debugging info error.
Ensure both the mormot package and the project has the same kind of debugging info.
Offline
Or perhaps try to switch your debug info to Dwarf 3.
I guess the problem may be from Dwarf 2 debugging info error.
Ensure both the mormot package and the project has the same kind of debugging info.
Thank you Arnaud, this last one did the magic !
Antonio
Offline
Pages: 1