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
10 replies to this topic
#1
Posted 29 January 2011 - 01:06 PM
|
|
|
#2
Posted 30 January 2011 - 06:03 AM
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?
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
Posted 30 January 2011 - 11:01 AM
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.
#4
Posted 30 January 2011 - 01:33 PM
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
Posted 30 January 2011 - 06:40 PM
I wouldn't expect you would need a reinstall with win7. My experience on XP is that you just install and it works.
#6
Posted 30 January 2011 - 10:47 PM
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
Posted 02 February 2011 - 04:17 AM
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?
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
Posted 04 February 2011 - 04:48 PM
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.
Try to save the project to a folder of your choice first.
#9
Posted 06 February 2011 - 01:34 PM
Ok, thank you very much. I'll try it tomorrow:)
#10
Posted 09 February 2011 - 02:30 AM
Okay, good luck!
#11
Posted 09 February 2011 - 02:29 PM
My GUI works fine now, thank you:)
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Sign In
Create Account


Back to top









