Recent

Author Topic: [Solved]Linking & path problems  (Read 1622 times)

Ruptor

  • Full Member
  • ***
  • Posts: 201
[Solved]Linking & path problems
« on: March 07, 2019, 10:50:11 am »
I have the problems stated on other posts but their fixes either don't work or I have done them wrong. I copied a working directory from WinXP to the latest Ubuntu 16 with Laz 1.8.4  and it is the same on the latest 18 where I installed Laz 2.0.0 with FPC 3.0.4 off your download page. The program complained it couldn't find crtbeginS.o and crtrendS.o so I found the path as
/usr/lib/gcc/x86_64-linux-gnu/7
 and added it in options -fl like other posts suggested.
It all went weird after that it didn't complain about the files it just failed to link. On Ubuntu 18 it gave exit code 1 but on 16 it just said exit code error no number. I am using Ubuntu 16 for further tests. I went back in to project options and tried adding the extra paths but it claimed the paths didn't exist then I noticed the IDE had added '/' to the end of the path like this
/usr/lib/gcc/x86_64-linux-gnu/7/
Every time I deleted it and clicked OK it took it without complaining the path didn't exist but looking again the forward slash was back. I see other paths don't have the final slash so I am totally confused now. Could it be opening the project by clicking on the original WinXP project under Linux that has screwed everything up?
I suppose I should try and create a new project Under Linux and bring the files in some how. ::)
« Last Edit: March 07, 2019, 12:26:59 pm by Ruptor »

Ruptor

  • Full Member
  • ***
  • Posts: 201
Re: Linking & path problems
« Reply #1 on: March 07, 2019, 12:26:14 pm »
After creating a new project and stuffing the old WinXP pas and form files in to it the program compiles OK. Clearly the WinXP project file screwed up the IDE but has it shown a bug? If I enter a path I would expect the system to update any files with the new path not change the path I entered and not tell me. Who is in control the operator or the machine?

 

TinyPortal © 2005-2018