Linking problems ...

Antoine DELOFFRE deloffre at iname.com
Fri Oct 19 08:55:01 CEST 2001


Here was my problem :

Linking vls...
gcc  -D_REENTRANT -rdynamic -o bin/vls obj/core/application.o
obj/core/exception.o
obj/core/file.o obj/core/log.o obj/core/parsers.o obj/core/reflect.o
obj/core/regexp.o
obj/core/serialization.o obj/core/settings.o obj/core/socket.o
obj/core/string.o
obj/core/system.o obj/core/thread.o obj/mpeg/ts.o obj/mpeg/streamdescr.o
obj/server/buffer.o
obj/server/directory.o obj/server/input.o obj/server/output.o
obj/server/channel.o
obj/server/request.o obj/server/admin.o obj/server/broadcast.o
obj/server/manager.o
obj/server/program.o obj/server/telnet.o obj/server/nativeadmin.o
obj/server/vls.o
obj/server/tsstreamer.o -ldl -lcrypt -lpthread
obj/core/settings.o: In function `C_CfgFileParser::~C_CfgFileParser(void)':
obj/core/settings.o(.gnu.linkonce.t._._15C_CfgFileParser+0x17): undefined
reference to
`C_Fifo<C_String>::~C_Fifo(void)'
collect2: ld returned 1 exit status
make: *** [vls] Erreur 1

I saw that setting.cpp was updated from CVS, and the error was the include
file that David Chiu
told...

Everything is OK now : this WE, I will be able to test that server !!!
Antoine

David Chiu a écrit :

> Antoine,
>
> I had the same problem when I tried to compile it. It turns out that an
> include si missing from setting.cpp file. Here is what to do:
> Add the following line to the begining of the file setting.cpp:
>
> #include "stack.cpp"
>
> David
>
> ----- Original Message -----
> From: "Antoine DELOFFRE" <deloffre at iname.com>
> To: <vls-devel at videolan.org>
> Sent: Thursday, October 18, 2001 9:11 AM
> Subject: Linking problems ...
>
> > After the great announce of vls 0.3.0, I've downloaded vls-0.3.0.tar.gz
> > on the www.videolan.org server.
> >
> > I tried to compile it on Linux.
> > Everything seems to be OK with the compilation, but I had a trouble with
> > the linking :
> > an undefined call to a function appears in settings.o.
> >
> > I took a look to the Makefile, and in the source code, and there is
> > effectively a call to
> > a function that is not linked to make vls...
> >
> > Did I do something wrong ? or was there effectively a problem with
> > settings.cpp and/or
> > the Makefile (on 16th of October and the days after, there were CVS
> > update on theses files ...) ?
> >
> > How can I do to succed in making vls ?
> >
> > Antoine (newbie to VLS ...)
> >
> >
> > > Update of /cvs/videolan/vls/src/core
> > > Modified Files:
> > >    settings.cpp
> > >
> > >Log Message:
> > >Fixed compilation problems with gcc 3.0 reported by Johnny Casey
> > >
> > >--
> > >benny
> >
> >
> >





More information about the vls-devel mailing list