Recent

Author Topic: Cannot compile project since refresh installation  (Read 6227 times)

Hozso

  • Newbie
  • Posts: 4
Cannot compile project since refresh installation
« on: March 02, 2021, 09:06:36 am »
   Hi guys,


   I installed the newest version of Lazarus (lazarus-2.0.12-fpc-3.2.0-win64.exe). Since then I cannot compile the project I am working on. I use Windows 10 64 bit, I installed: lazarus-2.0.12-fpc-3.2.0-win64.exe.

   1. I tried to uninstall/reinstall the Lazarus ,
   2. I tried to 'Recompile IDE to: normal profile' with 'Clean all' option,
   3. I ran Project/Test,
   4. I tried to 'Recimple and build all' settings were: 'LCL widgetset: win32/win64', 'Target OS: win64'
 
   Always having the same results. I don't have any other idea...

   The error messages are:

"HZSBootloader.lpr(21,1) Error: Undefined symbol: FPC_EMPTYINTF
HZSBootloader.lpr(21,1) Error: Undefined symbol: SYSTEM_::=::\_POS$RAWBYTESTRING$RAWBYTESTRING::=::\INT64
HZSBootloader.lpr(21,1) Error: Undefined symbol: SYSTEM_::=::\_DELETE$RAWBYTESTRING$INT64$INT64
HZSBootloader.lpr(21,1) Error: Undefined symbol: SYSTEM_::=::\_POS$CHAR$RAWBYTESTRING::=::\INT64
HZSBootloader.lpr(21,1) Error: Undefined symbol: SYSUTILS_::=::\_FILEEXISTS$RAWBYTESTRING::=::\BOOLEAN"

  (Sorry for my English, I am from Hungary.)

Hozso

  • Newbie
  • Posts: 4
Re: Cannot compile project since refresh installation
« Reply #1 on: March 02, 2021, 09:56:55 am »
  Well, I tried one more thing: uninstalled Lazarus and cleaned Registry (by CCleaner free version). After that I installed a former version of Lazarus. (The last one I used before: lazarus-2.0.8-fpc-3.0.4-win64.exe) And it works fine. (I mean: I was able to compile my actual project.)

  After that I installed again the newest version of Lazarus (lazarus-2.0.10-fpc-3.2.0-win64.exe) and I had the complining problem again. There might be some problem with this new installer?

  (Actually I use the 2.0.8 version again.)

wp

  • Hero Member
  • *****
  • Posts: 11858
Re: Cannot compile project since refresh installation
« Reply #2 on: March 02, 2021, 10:03:26 am »
I am very sure that it is not the installer which is causing your issues. Laz 2.0.8 had used FPC 3.0.4, but since Laz 2.0.10 is uses the new FPC 3.2.0 which introduced a series of changes. So, you probably ran into one of these changes. Study the changes list (https://wiki.freepascal.org/User_Changes_3.2.0), hopefully something strikes your eyes.

Otherwise you must show your code here.

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4459
  • I like bugs.
Re: Cannot compile project since refresh installation
« Reply #3 on: March 02, 2021, 11:35:46 am »
You must remove the old FPC 3.0.4 installation completely.
The errors hint that your project or Lazarus IDE configuration has paths for the old FPC version.
« Last Edit: March 02, 2021, 11:55:45 am by JuhaManninen »
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

Hozso

  • Newbie
  • Posts: 4
Re: Cannot compile project since refresh installation
« Reply #4 on: March 02, 2021, 01:09:56 pm »
  Tried... (uninstall, use CCleaner, reinstall) have the same problem.

  But I tried to open and compile another project (one of my former projects) and the compilation worked fine. So I think, I did something wrong during creating this project. So finally I decided to restart the project. I started a new project file and created the contorls and I use the text of the original .pas file. Now it is working fine!

  So, I think I had some problem with my project file, not the installer. Sorry for bothering you, guys!

  Thanks for the help!

Handoko

  • Hero Member
  • *****
  • Posts: 5131
  • My goal: build my own game engine using Lazarus
Re: Cannot compile project since refresh installation
« Reply #5 on: March 02, 2021, 01:16:16 pm »
I think I had some problem with my project file, not the installer.

You can try to copy/paste and compile it on other computer. Or if you want, you can post the source code here, so we can inspect it.

  Tried... (uninstall, use CCleaner, reinstall) have the same problem.

Does it use any third party component/library? You may need to reinstall them too, if any.

mike_p

  • New Member
  • *
  • Posts: 20
Re: Cannot compile project since refresh installation
« Reply #6 on: June 17, 2022, 09:29:41 am »
I know this is a long time after the topic was posted but ...

I came across this problem too. Googling brought me to this thread.
It gave me a clue to solving the problem:

Delete the contents of your project's 'lib' folder (eg delete x86_64-win64 folder)

With that done, no problems!

llion

  • Newbie
  • Posts: 5
Re: Cannot compile project since refresh installation
« Reply #7 on: January 07, 2023, 07:46:29 pm »
Thank you mike_p, this solution worked for me too on Ubuntu (where the folder name is x86_64-linux)

 

TinyPortal © 2005-2018