Sign in Join

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

Mailing lists / lazarus / 2014-06

Can't compile a saved project

5 messages · 4 people ·

Reply by email Subscribe to this list Your subscription

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

Michael Schnell

On Linux x86 32 Bits, using the current svn version, since two days, while I still can create a "new->application", after I just did "save project as" and saved the two files, I can't compile any more but get lots of error messages (seemingly when linking) starting with

Compile Project: Exit code 256, Errors:50
/usr/bin/ld: warning: link.res contains output sections; did you forget -T? /home/mschnell/Downloads/svn/lazarus/trunk/lcl/units/i386-linux/wsimglist.o: In function `REGISTERCUSTOMIMAGELIST':
wsimglist.pp(262,1) Error: undefined reference to
`WSRegisterCustomImageList'
/home/mschnell/Downloads/svn/lazarus/trunk/lcl/units/i386-linux/wsmenus.o: In function `REGISTERMENUITEM':
wsmenus.pp(221,1) Error: undefined reference to `WSRegisterMenuItem' ....

What to do ?

-Michael

Reply by email

Michael Van Canneyt
to Michael Schnell
Michael Schnell wrote 16 lines
On Linux x86 32 Bits, using the current svn version, since two days, while I still can create a "new->application", after I just did "save project as" and saved the two files, I can't compile any more but get lots of error messages (seemingly when linking) starting with Compile Project: Exit code 256, Errors:50 /usr/bin/ld: warning: link.res contains output sections; did you forget -T? /home/mschnell/Downloads/svn/lazarus/trunk/lcl/units/i386-linux/wsimglist.o: In function `REGISTERCUSTOMIMAGELIST': wsimglist.pp(262,1) Error: undefined reference to `WSRegisterCustomImageList' /home/mschnell/Downloads/svn/lazarus/trunk/lcl/units/i386-linux/wsmenus.o: In function `REGISTERMENUITEM': wsmenus.pp(221,1) Error: undefined reference to `WSRegisterMenuItem' .... What to do ?

Sounds like a missing 'interfaces' unit in your project source.

Michael.

Reply by email

Mattias Gaertner
to Michael Schnell: On Linux x86 32 Bits, using the current svn version, since two days, while I still can…
Show quoted text 17 lines
On Linux x86 32 Bits, using the current svn version, since two days, while I still can create a "new->application", after I just did "save project as" and saved the two files, I can't compile any more but get lots of error messages (seemingly when linking) starting with Compile Project: Exit code 256, Errors:50 /usr/bin/ld: warning: link.res contains output sections; did you forget -T? /home/mschnell/Downloads/svn/lazarus/trunk/lcl/units/i386-linux/wsimglist.o: In function `REGISTERCUSTOMIMAGELIST': wsimglist.pp(262,1) Error: undefined reference to `WSRegisterCustomImageList' /home/mschnell/Downloads/svn/lazarus/trunk/lcl/units/i386-linux/wsmenus.o: In function `REGISTERMENUITEM': wsmenus.pp(221,1) Error: undefined reference to `WSRegisterMenuItem' .... What to do ?

Add unit interfaces to lpr.

Mattias

Reply by email

Joost van der Sluis
to Michael Van Canneyt: Sounds like a missing 'interfaces' unit in your project source. Michael.
Michael Van Canneyt wrote 24 lines
On Thu, 12 Jun 2014, Michael Schnell wrote: > On Linux x86 32 Bits, using the current svn version, since two days, > while I still can create a "new->application", after I just did "save > project as" and saved the two files, I can't compile any more but get > lots of error messages (seemingly when linking) starting with > > Compile Project: Exit code 256, Errors:50 > /usr/bin/ld: warning: link.res contains output sections; did you > forget -T? > /home/mschnell/Downloads/svn/lazarus/trunk/lcl/units/i386-linux/wsimglist.o: > In function `REGISTERCUSTOMIMAGELIST': > wsimglist.pp(262,1) Error: undefined reference to > `WSRegisterCustomImageList' > /home/mschnell/Downloads/svn/lazarus/trunk/lcl/units/i386-linux/wsmenus.o: > In function `REGISTERMENUITEM': > wsmenus.pp(221,1) Error: undefined reference to `WSRegisterMenuItem' > .... > > What to do ? Sounds like a missing 'interfaces' unit in your project source.

See also:

http://wiki.lazarus.freepascal.org/Lazarus_Faq#When_I_compile_a_project.2C_that_uses_a_LCL_unit.2C_I_get_a_linker_error

Joost.

Reply by email