Sign in Join

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

Mailing lists / fpc-pascal / 2013-03

Warning: "crti.o" and "crtn.o" not found

4 messages · 4 people ·

Reply by email Subscribe to this list Your subscription

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

Anthony Walter

What is causing warnings for "crti.o" and "crtn.o" as described below?

I just got the latest fpc and lazarus from svn, and after build everything I wrote a "Hello World" Gtk2 test project on Ubuntu 12.04 (32 bit) with the following messages ...

Options changed, recompiling clean with -B
hello.lpr(20,1) Warning: "crti.o" not found, this will probably cause a linking failure
hello.lpr(20,1) Warning: "crtn.o" not found, this will probably cause a linking failure
Project "hello" successfully built

Curious
TIA

Tomas Hajny
to Anthony Walter
Anthony Walter wrote 13 lines
What is causing warnings for "crti.o" and "crtn.o" as described below? I just got the latest fpc and lazarus from svn, and after build everything I wrote a "Hello World" Gtk2 test project on Ubuntu 12.04 (32 bit) with the following messages ... Options changed, recompiling clean with -B hello.lpr(20,1) Warning: "crti.o" not found, this will probably cause a linking failure hello.lpr(20,1) Warning: "crtn.o" not found, this will probably cause a linking failure Project "hello" successfully built

What about providing information on contents of your hello.lpr? It might shed some light on why crti.o and crtn.o are considered as required by the compiler (although in the end they are not needed for linking apparently?).

Tomas

Marco van de Voort
to Anthony Walter: What is causing warnings for "crti.o" and "crtn.o" as described below? I just got the…

In our previous episode, Anthony Walter said:

What is causing warnings for "crti.o" and "crtn.o" as described below?

The fact that they don't exist :-)

Which in turn is probably due to the fact that the system hasn't been prepared for C development, and you are linking to C libs.

Probably you need the relevant base library for C development for your distribution.