Recent

Author Topic: FPC giving errors?  (Read 1748 times)

CVAlkan

  • New member
  • *
  • Posts: 9
FPC giving errors?
« on: June 29, 2013, 11:45:57 pm »
I tried loading Lazarus, etc. on my Ubuntu 12.04LTS and it seemed to work, but I could never get a one button form to run or to create an executable.

I think I've traced the issue to the compiler itself, but I don't know where to look now. Here's how I got to that point:

I totally trashed everything by doing the following:
sudo apt-get purge lazarus*
sudo apt-get purge fpc*
sudo rm -Rf /usr/lib/fpc
sudo rm -Rf /usr/lib/lazarus
sudo rm -Rf /usr/share/fpcsrc
sudo rm -f ~/.fpc
sudo rm -Rf ~/.lazarus
sudo rm -f /usr/bin/lazarus*
sudo rm -f /usr/bin/lazres*
sudo rm -f /usr/bin/lazbuild*
sudo rm -f ~/.local/share/applications/lazarus*

Then I reloaded the fpc_2.6.2-0_amd64.deb and fpc-src_2.6.2-0_amd64.deb packages in that sequence using the Ubuntu Software Center.

I built a three line text file named Test.pas, containing:
begin
  writeln('Hi; welcome to the fpc compiler!');
end.

Then I typed fpc Test.pas and got the following:
Blah, blah ...
Compiling Test.pas
Linking Test
/usr/bin/ld: warning: link.res contains output sections; did you forget -T?
2 lines compiled, 0.2 sec

And, of course, it doesn't work. When I try to run it by ./Test, it tells me that I don't have permission (I've checked - I'm the owner and rwx is set all across. when I run sudo ./Test, it doesn't complain, but does nothing at all.

So - assuming that this explains why I couldn't run anything from the ide, I didn't bother to install that yet.

Delphi used to be one of my favorite environments back in the 90s, and I'd sure like to use Lazarus, but don't know where to go from here.

 

TinyPortal © 2005-2018