[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] NCurses



On Fri, 2005-07-29 at 23:53 -0600, evan@coolrunningconcepts.com wrote:
> Quoting Mark Duckworth <mduckworth@atari-source.com>:
> 
> > Hey guys,
> >
> > I have to build a new ncurses for something I'm working on.  The C++
> > demo compiles and it says:
> >
> > g++  -o demo ../objects/demo.o -L../lib -lncurses++ -L../lib -lform
> > -lmenu -lpanel -lncurses -lstdc++
> > /usr/lib/libc.a(main.o)(.text+0x4a0): undefined reference to `main'
> > collect2: ld returned 1 exit status
> >
> > Which is somewhat disconcerting.  If anyone has any idea why my GCC
> > might be doing this I'd be much obliged.  Anyway, I can just skip this
> > if I don't build C++ bindings for ncurses.
> >
> > Does anyone know if progs in sparemint use the ncurses c++ bindings?
> >
> > Thanks,
> > Mark
> 
> Which compiler is it?  And are you sure all the libs were compiled with 
> the same
> version?   G++, especially older versions had some name mangling bugs 
> in the C++
> compiler so it was very picky about having all parts of the toolchain, and all
> libraries all compiled with the same compiler.

It's standard sparemint gcc 2.95.3.  I don't know for sure that all the
libs were compiled with the same compiler but I'd assume so.  What a
pita ;)   I could just get the SRPMS and build new releases of the rpms
that those libs belong to.

Thanks,
Mark