[fpc-pascal] error while compiling

dayat dayat.aceh at gmail.com
Sat Feb 6 09:21:31 CET 2010


Dear,

I have a function ftest located in library program (dll).

function ftest(Param: PWideChar): PWideChar; stdcall; export;

And will call them with a program with use:

function ftest(Param: PWideChar): PWideChar; stdcall; external 'test.dll';

while compiling to exe, I got error like this:

C:\fpc\test>fpc testcall.pas
Free Pascal Compiler version 2.4.0 [2009/12/18] for i386
Copyright (c) 1993-2009 by Florian Klaempfl
Target OS: Win32 for i386
Compiling testcall.pas
testcall.pas(11,26) Fatal: Unknown compilerproc "fpc_read_text_widechar".
Check
if you use the correct run time library.
Fatal: Compilation aborted
Error: C:\usr\local\fpc\2.4.0\bin\i386-win32\ppc386.exe returned an error
exitco
de (normal if you did not specify a source file to be compiled)

What the wrong, how to solving the problem.
thanks
dayat
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20100206/9723ee97/attachment.html>


More information about the fpc-pascal mailing list