Page 1 of 1

Free BSD Compile problem

Posted: 20.01.2009, 12:56
by jaromir
Hello.

I have problem with compile easy sample with zeos using. FPC 2.2.2. Newest zeos version.

Problem is in ZTokenizer.pas in line 1093 where is operation
String := Strnig + Char

In this line i got a error:
invalid combination of opcode and operands

I understand what does it mean but I don't know what to do. Please help.

Regards:
Jaromir

Posted: 21.01.2009, 10:44
by mdaems
Hi Jaromir,

I build zeslib with fpc 2.2.2 for every test run. So I wonder what problem you're having exactly. What exact zeoslib version are you using? SVN, snapshot download or the official 6.6.4 release?
Can you also copy the exact piece of code (function or part of it) giving this problem? As you understand what it means, please try to explain that as well. I'm not thatgood at reading/understanding compiler error messages.

Mark

Posted: 21.01.2009, 12:04
by jaromir
Hi mdaems,

It was my mistake. That was FPC 2.2.0 version not 2.2.2. After upgrade to 2.2.2 compile was succesful.

Another my question is:

In windows You need a library: libpq74.dll. Is in FreeBSD system instaled another postgres client so aditionaly library isn't needed ??

Regards:
Jaromir

Posted: 21.01.2009, 13:07
by mdaems
In Linux/Unix libpq.so is used for postgres 7. For postgres8 you can use libpq.so or libpq.so.4 . See top of ZPlainXXXXDriver.pas files for the naming
possibilities, there you can change it to your needs too.

Mark

Posted: 21.01.2009, 19:49
by jaromir
Thank You Mark for Your support.

Jaromir