[prev in list] [next in list] [prev in thread] [next in thread] 

List:       opensuse-packaging
Subject:    Re: [opensuse-packaging] undefined reference at linking stage
From:       "Esztermann, Ansgar" <Ansgar.Esztermann () mpibpc ! mpg ! de>
Date:       2013-02-07 8:30:36
Message-ID: 5198CCC61AC88343956BFBDA93F9826D41A32978 () UM-EXCDAG-A01 ! um ! gwdg ! de
[Download RAW message or body]


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@opensuse.org
To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic