Recent

Author Topic: delphi 7 port gives 'error while linking'  (Read 16822 times)

mezeb40

  • Newbie
  • Posts: 4
delphi 7 port gives 'error while linking'
« on: February 14, 2005, 02:41:42 am »
hello, I am trying to port a delphi 7  application i wrote to Lazarus.it seems to compile ok with the dcu being created but then stops with a 'error while linking' ..I can compile and run test programs made in lazarus ok so  i am wondering why the error appears for the delphi port.
Any info appreciated.
thanks.

Lightning

  • Sr. Member
  • ****
  • Posts: 422
delphi 7 port gives 'error while linking'
« Reply #1 on: February 14, 2005, 12:06:44 pm »
Well it could be many things, depending on the components used, how much WinAPI, how much Delphi specific syntax, i wold start converting small pieces of the program and see where the problem is.
The future must be... Fast and OpenSource so...
Think Open and Lightning Fast!

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2584
delphi 7 port gives 'error while linking'
« Reply #2 on: February 14, 2005, 12:32:02 pm »
What is the exact error message you get
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

mezeb40

  • Newbie
  • Posts: 4
delphi 7 port gives 'error while linking'
« Reply #3 on: February 16, 2005, 11:35:18 am »
Lots of hints/notes  with 'parameter variable/ sender not used'
.
finally an 'error:error while linking'

thanks

eric

  • Sr. Member
  • ****
  • Posts: 267
delphi 7 port gives 'error while linking'
« Reply #4 on: February 16, 2005, 02:06:11 pm »
You can safely ignore the hints about 'Sender' not being used. It is of course quite common that this parameter isn't used in an event handler, but you can't avoid having it there :)

Eric

mezeb40

  • Newbie
  • Posts: 4
delphi 7 port gives 'error while linking'
« Reply #5 on: February 16, 2005, 04:04:40 pm »
so i am left with the link error..some sort of path problem maybe?

jesusr

  • Sr. Member
  • ****
  • Posts: 484
delphi 7 port gives 'error while linking'
« Reply #6 on: February 16, 2005, 10:00:22 pm »
the given information is not enough.

try to copy and paste some of the last lines of the compile process, the last 10-20 lines would be fine.

Anonymous

  • Guest
delphi 7 port gives 'error while linking'
« Reply #7 on: February 17, 2005, 11:02:43 am »
ok,here it is.

Unit1.pas(1167,25) Hint: use DIV instead to get an integer result
Unit1.pas(1168,44) Hint: Type size mismatch, possible loss of data / range check error
Unit1.pas(103,33) Hint: Parameter "Sender" not used
Unit1.pas(1287,44) Hint: Type size mismatch, possible loss of data / range check error
Unit1.pas(1309,25) Hint: use DIV instead to get an integer result
Unit1.pas(1214,6) Note: Local variable "randcol" not used
Unit1.pas(104,29) Hint: Parameter "Sender" not used
Unit1.pas(1334,3) Note: Local variable "Points2" not used
Unit1.pas(1335,3) Note: Local variable "Len" not used
Unit1.pas(1335,8) Note: Local variable "I" not used
Unit1.pas(1335,11) Note: Local variable "K" not used
Unit1.pas(1335,14) Note: Local variable "f" not used
Unit1.pas(1336,3) Note: Local variable "VectorLen" not used
Unit1.pas(1336,14) Note: Local variable "Move" not used
Unit1.pas(1336,20) Note: Local variable "X1" not used
Unit1.pas(1336,24) Note: Local variable "Y1" not used
Unit1.pas(1336,28) Note: Local variable "Z1" not used
Unit1.pas(1336,32) Note: Local variable "Threshold" not used
Unit1.pas(1337,3) Note: Local variable "zz" not used
Unit1.pas(169,31) Hint: Parameter "Points" not used
Unit1.pas(169,67) Hint: Parameter "SmoothingFactor" not used
Unit1.pas(105,27) Hint: Parameter "Sender" not used
Unit1.pas(1443,35) Hint: Type size mismatch, possible loss of data / range check error
Unit1.pas(1445,38) Hint: Type size mismatch, possible loss of data / range check error
Unit1.pas(1447,32) Hint: Type size mismatch, possible loss of data / range check error
Unit1.pas(1451,37) Hint: Type size mismatch, possible loss of data / range check error
Unit1.pas(1455,35) Hint: Type size mismatch, possible loss of data / range check error
Unit1.pas(106,33) Hint: Parameter "Sender" not used
Unit1.pas(1472,6) Note: Local variable "a" not used
Unit1.pas(107,33) Hint: Parameter "Sender" not used
Unit1.pas(108,34) Hint: Parameter "Sender" not used
Unit1.pas(109,34) Hint: Parameter "Sender" not used
Unit1.pas(110,33) Hint: Parameter "Sender" not used
Error: Error while linking

Lightning

  • Sr. Member
  • ****
  • Posts: 422
delphi 7 port gives 'error while linking'
« Reply #8 on: February 23, 2005, 02:15:57 am »
Looks like a linker error, can you compile simple programs ?
The future must be... Fast and OpenSource so...
Think Open and Lightning Fast!

mezeb40

  • Newbie
  • Posts: 4
delphi 7 port gives 'error while linking'
« Reply #9 on: February 25, 2005, 10:20:26 am »
yes ,i can compile and run simple programs from lazarus ide. ie. lazarus works fine, its the port from delphi giving the error.

Lightning

  • Sr. Member
  • ****
  • Posts: 422
delphi 7 port gives 'error while linking'
« Reply #10 on: February 25, 2005, 05:45:21 pm »
I would try to convert small portions :)
The future must be... Fast and OpenSource so...
Think Open and Lightning Fast!

jesusr

  • Sr. Member
  • ****
  • Posts: 484
delphi 7 port gives 'error while linking'
« Reply #11 on: February 27, 2005, 11:03:40 pm »
I don't know why, but before Lightning post of Feb 22, 2005 - 07:15 PM, I replied to mezeb40, but my reply ended in another thread. Anyway the intended response can be found in  
http://www.lazarus.freepascal.org/index.php?name=PNphpBB2&file=viewtopic&p=3451#3451

Lightning

  • Sr. Member
  • ****
  • Posts: 422
delphi 7 port gives 'error while linking'
« Reply #12 on: February 28, 2005, 10:58:52 am »
Maybe you replied just after me and the server didn't know what to do with your post :)
The future must be... Fast and OpenSource so...
Think Open and Lightning Fast!

marmin

  • Jr. Member
  • **
  • Posts: 86
    • http://www.naton.org
delphi 7 port gives 'error while linking'
« Reply #13 on: March 03, 2005, 09:15:59 pm »
I also get 'error while linking' , compiling a Delphi code to Lazarus. Could it be that any of the compiler swithes is set wrongly.


I've set all Delphi-related swithes to 'on'.
I've tried anything: smart-linking on/off, etc.

Another question: is the order of units in the 'uses' list any influence on this? There has to be a simple explanation.
Marmin^.Style
Location: Pointer Land!

marmin

  • Jr. Member
  • **
  • Posts: 86
    • http://www.naton.org
delphi 7 port gives 'error while linking'
« Reply #14 on: March 03, 2005, 10:53:50 pm »
Aah.. I think I've found a solution.

If one has these problems, try this:

- make a new Lazarus unit into your Lazarus Project.
- copy and paste you old Delphi unit contents in this new Lazarus Unit.
- name and save the unit the same way you'd save a Delphi unit (but in a different folder than de Delphi unit of course).
- save your Lazarus project.

- If u don't have a Form connected with it, please remove :
{$R *.dfm} after implementation.

(this is what caused my error)

greetz,
Marcel.
Marmin^.Style
Location: Pointer Land!

 

TinyPortal © 2005-2018