Re: [lazarus] Linking error

2006-04-04 Thread Mattias Gaertner
On Mon, 03 Apr 2006 17:19:43 -0600
L505 [EMAIL PROTECTED] wrote:

 
Hi
   
Could someone point me in the right direction please.  I have added
the unit pgcl (a postgres access unit) to a project which built and
compiled perfectly without any problems. Now when I build the
project , a message error while linking occurs and the project
compilation does not complete.  Since there are no other messages
that could point me in the direction of where to look for the
problem - I have no idea as to how to sove this.
  
  
   Use the command line to find out.
   fpc project1.lpr -options
  
  
   Lazarus really needs to show these errors, I think it skips part of
   the error and only reads some of it (the non-important part in this
   case). It won't tell you that as.exe or as is missing, and other
   things. Or, maybe TProcess is not capturing all the messages, or just
   capturing the very last error message when in fact we need about 3
   lines up.
 
  FPC prints the linker errors followed by 'error while linking'. That's
  why the IDE prints all messages in front of such a message.
  Can you give me an example of skipped important messages?
 
 
  Mattias
 
 
 I sometimes only get:
   error while linking
 
 But no other information, because lazarus pins in on that line only. Or is
 it FPC that is doing that when you don't Build All?

I don't know every possible linker error, only that it works for those I
got.

 
 Or copy all messages to clipboard maybe solves my problem in some cases?

Yes. 
Still: If you find a linker error, that is filtered out, please post it, so
we can extend the filter.

Mattias

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Linking error

2006-04-04 Thread L505

 I sometimes only get:
   error while linking


Well I tried renaming as.exe to as.old and the IDE reported the correct error,
and didn't just spit out error while linking - so can't really reproduce the
issue yet.

I recall using Build All to solve the problem, but can't remember what the
circumstances were. I'm sure I'll come across it some time if it is a true
problem that affects me :) otherwise I'm just moaning.

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Linking error

2006-04-03 Thread Vincent Snijders

Alex du Plessis schreef:

Hi

Could someone point me in the right direction please.  I have added the 
unit pgcl (a postgres access unit) to a project which built and compiled 
perfectly without any problems. Now when I build the project , a message 
error while linking occurs and the project compilation does not 
complete.  Since there are no other messages that could point me in the 
direction of where to look for the problem - I have no idea as to how to 
sove this.


Anybody with any ideas?



Lot's of ideas / questions, I don't know if it helps.

What fpc version are you using?

Does it compile again, if you remove the unit?

If you copy all (including hidden) messages from the messages view, does that give 
more information?


Can you delete the existing executable (from a previous build attempt)?

Vincent

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Linking error

2006-04-03 Thread Alex du Plessis



Vincent Snijders wrote:

Alex du Plessis schreef:

Hi

Could someone point me in the right direction please.  I have added 
the unit pgcl (a postgres access unit) to a project which built and 
compiled perfectly without any problems. Now when I build the project 
, a message error while linking occurs and the project compilation 
does not complete.  Since there are no other messages that could point 
me in the direction of where to look for the problem - I have no idea 
as to how to sove this.


Anybody with any ideas?



Lot's of ideas / questions, I don't know if it helps.

What fpc version are you using?

Does it compile again, if you remove the unit?

If you copy all (including hidden) messages from the messages view, does 
that give more information?


Can you delete the existing executable (from a previous build attempt)?

Vincent


Your questions certainly pointed me in the right direction and here was 
the problem:


Unit pgcl uses postgres;
unit postgres {$LINKLIB pq} and uses dlllst
unit dlllst also {$LINKLIB pq}

However under Windows it should be {$LINKLIB libpq} in both files

Also make sure the compiler can find libpq.dll (adding the directory to 
the compiler search path)


Thanks for the advice


_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives




_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Linking error

2006-04-03 Thread L505
 Hi

 Could someone point me in the right direction please.  I have added the
 unit pgcl (a postgres access unit) to a project which built and compiled
 perfectly without any problems. Now when I build the project , a message
 error while linking occurs and the project compilation does not
 complete.  Since there are no other messages that could point me in the
 direction of where to look for the problem - I have no idea as to how to
 sove this.


Use the command line to find out.
fpc project1.lpr -options


Lazarus really needs to show these errors, I think it skips part of the error
and only reads some of it (the non-important part in this case). It won't tell
you that as.exe or as is missing, and other things.
Or, maybe TProcess is not capturing all the messages, or just capturing the very
last error message when in fact we need about 3 lines up.

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Linking error

2006-04-03 Thread Mattias Gaertner
On Mon, 03 Apr 2006 10:45:09 -0600
L505 [EMAIL PROTECTED] wrote:

  Hi
 
  Could someone point me in the right direction please.  I have added the
  unit pgcl (a postgres access unit) to a project which built and compiled
  perfectly without any problems. Now when I build the project , a message
  error while linking occurs and the project compilation does not
  complete.  Since there are no other messages that could point me in the
  direction of where to look for the problem - I have no idea as to how to
  sove this.
 
 
 Use the command line to find out.
 fpc project1.lpr -options
 
 
 Lazarus really needs to show these errors, I think it skips part of the
 error and only reads some of it (the non-important part in this case). It
 won't tell you that as.exe or as is missing, and other things.
 Or, maybe TProcess is not capturing all the messages, or just capturing
 the very last error message when in fact we need about 3 lines up.

FPC prints the linker errors followed by 'error while linking'. That's why
the IDE prints all messages in front of such a message.
Can you give me an example of skipped important messages?


Mattias

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Linking error

2006-04-03 Thread L505

   Hi
  
   Could someone point me in the right direction please.  I have added the
   unit pgcl (a postgres access unit) to a project which built and compiled
   perfectly without any problems. Now when I build the project , a message
   error while linking occurs and the project compilation does not
   complete.  Since there are no other messages that could point me in the
   direction of where to look for the problem - I have no idea as to how to
   sove this.
 
 
  Use the command line to find out.
  fpc project1.lpr -options
 
 
  Lazarus really needs to show these errors, I think it skips part of the
  error and only reads some of it (the non-important part in this case). It
  won't tell you that as.exe or as is missing, and other things.
  Or, maybe TProcess is not capturing all the messages, or just capturing
  the very last error message when in fact we need about 3 lines up.

 FPC prints the linker errors followed by 'error while linking'. That's why
 the IDE prints all messages in front of such a message.
 Can you give me an example of skipped important messages?


 Mattias


I sometimes only get:
  error while linking

But no other information, because lazarus pins in on that line only. Or is it
FPC that is doing that when you don't Build All?

Or copy all messages to clipboard maybe solves my problem in some cases?

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives