#5 Error while linking

closed
nobody
None
5
2007-10-25
2007-10-24
Anonymous
No

I get the following error output when compiling a simple kol-project (only TKOLForm and TKOLProject) for WinCE:
Assembling kol
Compiling resource C:\lazarus\kol-ce-2.80\kol\KOL-CE.rc
c:\lazarus\fpc\2.2.1\bin\i386-win32\arm-wince-windres.exe: no resources
C:\lazarus\kol-ce-2.80\kol\KOL.PAS(57901) Error: Error while linking
C:\lazarus\kol-ce-2.80\kol\KOL.PAS(57901) Fatal: There were 1 errors compiling module, stopping

I added a text file with the full output as attachment.

I installed Lazarus, the compiler and KOL-CE on the following way:
- Installed Lazarus-0.9.23-fpc-2.2.1-20071017-win32.exe to C:\lazarus\ - Installed Lazarus-0.9.23-fpc-2.2.1-20070916-cross-arm-wince-win32.exe to C:\lazarus\ - Unpacked kol-ce-2.80.zip to C:\lazarus\kol-ce-2.80\ - Loaded the MirrorKOLPackage.lpk in Lazarus and installed it

Then I created a simple KOL project like described here:
http://wiki.freepascal.org/KOL-CE#Creating_MCK_project
As projectDest I used "minikoltest".

I reinstalled all several times but I always get the same error.

Discussion

  • full error output

     
    Attachments
  • jura
    jura
    2007-10-24

    Logged In: YES
    user_id=1226674
    Originator: NO

    You need to edit Windows PATH environment variable and add path to folder where win32 fpc binaries are located.
    I added this info to wiki page.

     
  • Logged In: NO

    Thanks!

     
  • Rene Lindsay
    Rene Lindsay
    2007-10-24

    Logged In: YES
    user_id=306033
    Originator: NO

    A went:
    Right-click on 'My Computer' -> Advanced -> Environment Variables

    I added the following path to the PATH Environment Variable:
    C:\lazarus\fpc\2.2.1\bin\i386-win32

    This made NO difference. I still get the error while linking.

     
  • Rene Lindsay
    Rene Lindsay
    2007-10-24

    Logged In: YES
    user_id=306033
    Originator: NO

    OH WAIT!
    After adding "C:\lazarus\fpc\2.2.1\bin\i386-win32" to the PATH Environment Variable of Windows,
    I rebooted, and re-installed Lazarus + FPC + Arm-compiler + KOL-CE,
    and now it works! (Woo-hoo!)
    My first compiled exe(just a blank form) is 48Kb, and runs on my Ipaq h4150.
    Thank you Yury!

     
  • Jobra
    Jobra
    2007-10-24

    Logged In: YES
    user_id=1917616
    Originator: NO

    Maybe you better add to the wiki that they have to re-install Lazarus.
    For me it was like it was for rjklindsay. After only adding the PATH variable it didn't work. After re-installation of all it worked.
    Thanks for this great tool!

     
  • jura
    jura
    2007-10-25

    • status: open --> closed
     
  • jura
    jura
    2007-10-25

    Logged In: YES
    user_id=1226674
    Originator: NO

    Actually there is no need to reinstall. It is enough to restart Lazarus IDE or edit PATH while Lazarus is not running...