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
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to