Hi,
I'm trying to link a C library to my pascal app. From the messages I understand that I forgot to link in some additional library. However I cannot find which one that is. In my app I have included: {$IFDEF MSWINDOWS} {$linklib libmsvcrt} {$ELSE} {$linklib c} {$ENDIF} Is there a way to find out which library I should additionally link or does someone know which library I should add? Below is the list of errors I get. Thanks in advance, Darius Free Pascal Compiler version 2.6.2 [2013/03/17] for i386 Copyright (c) 1993-2012 by Florian Klaempfl and others Target OS: Win32 for i386 Compiling misctest_misc.pp Linking misctest_misc.exe test_misc.pp(13,1) Error: Undefined symbol: __imp___iob test_misc.pp(13,1) Error: Undefined symbol: _strcpy test_misc.pp(13,1) Error: Undefined symbol: _atoi test_misc.pp(13,1) Error: Undefined symbol: _strncpy test_misc.pp(13,1) Error: Undefined symbol: _sprintf test_misc.pp(13,1) Error: Undefined symbol: _strcat test_misc.pp(13,1) Error: Undefined symbol: _free test_misc.pp(13,1) Error: Undefined symbol: _fprintf test_misc.pp(13,1) Error: Undefined symbol: _printf test_misc.pp(13,1) Error: Undefined symbol: _malloc test_misc.pp(13,1) Error: Undefined symbol: _calloc test_misc.pp(13,1) Error: Undefined symbol: _sscanf test_misc.pp(13,1) Error: Undefined symbol: _toupper test_misc.pp(13,1) Error: Undefined symbol: _open test_misc.pp(13,1) Error: Undefined symbol: _close test_misc.pp(13,1) Error: Undefined symbol: _lseek test_misc.pp(13,1) Error: Undefined symbol: _read test_misc.pp(13,1) Error: Undefined symbol: _getenv test_misc.pp(13,1) Error: Undefined symbol: _getcwd test_misc.pp(13,1) Error: Undefined symbol: _strcasecmp test_misc.pp(13,1) Error: Undefined symbol: _GetDiskFreeSpaceA@20 test_misc.pp(13,1) Error: Undefined symbol: _puts test_misc.pp(13,1) Error: Undefined symbol: _chdir test_misc.pp(13,1) Error: Undefined symbol: _perror test_misc.pp(13,1) Error: Undefined symbol: _opendir test_misc.pp(13,1) Error: Undefined symbol: _strdup test_misc.pp(13,1) Error: Undefined symbol: _readdir test_misc.pp(13,1) Error: Undefined symbol: _realloc test_misc.pp(13,1) Error: Undefined symbol: _stat test_misc.pp(13,1) Error: Undefined symbol: _exit test_misc.pp(13,1) Error: Undefined symbol: _qsort test_misc.pp(13,1) Error: Undefined symbol: _closedir test_misc.pp(13,1) Error: Undefined symbol: _localtime test_misc.pp(13,1) Error: Undefined symbol: _strftime test_misc.pp(13,1) Error: Undefined symbol: _fstat test_misc.pp(13,1) Error: Undefined symbol: _write test_misc.pp(13,1) Error: Undefined symbol: _strchr test_misc.pp(13,1) Error: Undefined symbol: _mkdir test_misc.pp(13,1) Fatal: There were 38 errors compiling module, stopping Fatal: Compilation aborted Error: C:lazarusfpc2.6.2bini386-win32ppc386.exe returned an error exitcode (normal if you did not specify a source file to be compiled)
_______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal