Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2013-05

UTF8 compiling problem

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Antonio Fortuny

Hi Folks.

I've replaced today an old Lararus installation by the latest 1.0.8 and FPC 2.6.2 on a Win64 target. All needed packages recompiled and installed OK 8-)
But when compiling a project which compiles without problems on a Win32 target (Laz 1.0.8 too) I get these compilation errors: =-O

IpServiceConsole.lpr(22,1) Error: Undefined symbol:
LAZUTF8_UTF8POS$ANSISTRING$ANSISTRING$INT64$$INT64
IpServiceConsole.lpr(22,1) Error: Undefined symbol:
LAZUTF8_UTF8FIXBROKEN$ANSISTRING

In the project code I have this:

                     {$IFDEF MSWINDOWS}
                     wUTF8 := SysToUTF8(wField);        // from fileutil.pas

or

                     wUTF8 := LazUTF8.SysToUTF8(wField);
                     {$ELSE}
                     wUTF8 := CP1252ToUTF8(wField);
                     {$ENDIF}

only once. I have to deal with win32, win64 winCE and Linux for some projects. BTW, the same project compiles without problems on Linux Whatever function is used, same errors
On WinCE i Compile on a Win32 target + WinCE
The unit used is LazUtf8

Thanks in advance for any help.

Antonio.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20130524/9ef804e6/attachment.html>

Mattias Gaertner
to Antonio Fortuny
Show quoted text 12 lines
Hi Folks. I've replaced today an old Lararus installation by the latest 1.0.8 and FPC 2.6.2 on a Win64 target. All needed packages recompiled and installed OK 8-) But when compiling a project which compiles without problems on a Win32 target (Laz 1.0.8 too) I get these compilation errors: =-O IpServiceConsole.lpr(22,1) Error: Undefined symbol: LAZUTF8_UTF8POS$ANSISTRING$ANSISTRING$INT64$$INT64 IpServiceConsole.lpr(22,1) Error: Undefined symbol: LAZUTF8_UTF8FIXBROKEN$ANSISTRING

Have you tried Run / Clean Up build files?

Mattias

Antonio Fortuny
to Mattias Gaertner

Le 24/05/2013 10:25, Mattias Gaertner a ?crit :

On Fri, 24 May 2013 10:18:03 +0200 Antonio Fortuny wrote: Have you tried Run / Clean Up build files?

Magic. ;-)
Just cleaned project directories, not packages.
If life's problems were so easy to resolve, everything would be so different. Don't worry, it's friday, my philosophical day. :-P Thanks again Mattias.

Antonio.

Show quoted text 9 lines
Mattias -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus