Jump to content

GUI problem

- - - - -

  • Please log in to reply
10 replies to this topic

#1
BramS

BramS

    Newbie

  • Members
  • PipPip
  • 13 posts
Hi,

I tried to make a GUI with lazarus but I always get the same error:
Error while linking

This is the first time I tried to make a GUI, maybe did I forget something?

Can someone help me?

grtz

#2
LuthfiHakim

LuthfiHakim

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 765 posts
Hi BramS,

Actually I don't have much experience with Lazarus, just tried to convert some tiny programs. Up till now I have never experienced this problem. But I admit that I never played around with the libraries. Always use default installation.

This error usually caused by the compiler could not find the library it needed. Maybe you are using new library and forgot to include its location to Lazarus' search path. Or if it's a component, you have to recompile Lazarus to be able to use it in visual designing. Anyway, didn't you get informed of what module/file that was missing?

#3
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others
Also, what platform is this on (Mac, Windows, Linux) and how did you install it? I've run into issues with that before, but fixing it depends somewhat on the details of the platform.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#4
BramS

BramS

    Newbie

  • Members
  • PipPip
  • 13 posts

WingedPanther said:

Also, what platform is this on (Mac, Windows, Linux) and how did you install it? I've run into issues with that before, but fixing it depends somewhat on the details of the platform.

@WingedPanther: I use windows (7), is reinstalling lazarus a solution?

@LuthfiHakim: I can upload an image of the error tomorrow.

#5
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others
I wouldn't expect you would need a reinstall with win7. My experience on XP is that you just install and it works.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#6
LuthfiHakim

LuthfiHakim

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 765 posts
Yes, Lazarus default installation in Windows is actually very stable. However for newbie, please stick with 32 bit (x86) version. Because that version has all features/components ready to use. The 64 bit version (x64) only has libraries with x64 codes tested thoroughly, making only smaller number of libraries available. You can add new libraries/components, but since Lazarus still has to link everything statically, you have to recompile it first.

#7
BramS

BramS

    Newbie

  • Members
  • PipPip
  • 13 posts
I used this tutorial to create GUIs: YouTube - Free Pascal Tutorial 15 - Starting Windows, Mac and Linux GUI Programming - Lazarus

here is the link to the picture of my error:
Imageshack - 60862376.png

Lazarus opens a project1 automatically when I try to run the program.

Maybe is there something wrong with my programming?

#8
LuthfiHakim

LuthfiHakim

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 765 posts
Oh, that's also my first mistake when started using lazarus. :) You have tried to compile Project1 before you actually save it first. Without actually get saved, some basic project files (such as .rc and .manifest) haven't existed yet. Making the compiler could not find them.

Try to save the project to a folder of your choice first.

#9
BramS

BramS

    Newbie

  • Members
  • PipPip
  • 13 posts
Ok, thank you very much. I'll try it tomorrow:)

#10
LuthfiHakim

LuthfiHakim

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 765 posts
Okay, good luck!

#11
BramS

BramS

    Newbie

  • Members
  • PipPip
  • 13 posts
My GUI works fine now, thank you:)




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users