At Sun, 22 Apr 2007 14:33:17 -0400 Brian C <[EMAIL PROTECTED]> wrote:

> 
> Paul Pluzhnikov wrote:
> > Most likely you do something like this:
> > 
> >   g++ -ldec -lmascot main.cpp
> > 
> > Read the link below to understand why you shouldn't do that:
> > http://webpages.charter.net/ppluzhnikov/linker.html
> > 
> >>    I brought the code home to finish up on it, and it fails to
> >>    compile w/ g++ (unchanged).
> > 
> > It doesn't fail to compile. It fails to link. There is a big
> > difference between the two.
> 
> That worked. It's odd that it works fine with IBM xlC compiler and 
> Visual C++.

No, it just has to do with how the various linkers work and in what
order they search libraries and whether or not the linkers care about
the order of the arguments on the command line.

> 
> Yes, sorry I said compile, I meant to say link which I said below that 
> snippet you took.
>                      

-- 
Robert Heller             -- 978-544-6933
Deepwoods Software        -- Linux Installation and Administration
http://www.deepsoft.com/  -- Web Hosting, with CGI and Database
[EMAIL PROTECTED]       -- Contract Programming: C/C++, Tcl/Tk
                                                                                
                                           
_______________________________________________
help-gplusplus mailing list
help-gplusplus@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gplusplus

Reply via email to