Mailinglist Archive: opensuse-packaging (46 mails)

< Previous Next >
Re: [opensuse-packaging] undefined reference at linking stage

On Feb 6, 2013, at 15:53 , Philipp Thomas wrote:

I wonder why it is compiling well, but the linker reports an error.

The compiler only sees one file at a time. It can therefore only
generate the appropriate calls
to external symbols and leave the resolution up the the linker.

Besides, C++ does not really support modules, so the compiler only knows about
prototypes. The existence of a real object corresponding to that prototype is
never checked (except at link time, as seen in the case at hand).


A.

--
Ansgar Esztermann
DV-Systemadministration
Max-Planck-Institut für biophysikalische Chemie, Abteilung 105

--
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-packaging+owner@xxxxxxxxxxxx

< Previous Next >