Page 1 of 1

Error while compiling : undefined reference to `VLC_Version'

Posted: 22 Nov 2006 13:12
by vishalmokal
hi,
I am new to linux. I am compiling VLC latest version according to the instructions given. but i am fiinding difficulties in solving the following problem.

vlc-vlc.o(.text+0xc): In function `main':
: undefined reference to `VLC_Version'
vlc-vlc.o(.text+0x3c): In function `main':
: undefined reference to `rootwrap'
vlc-vlc.o(.text+0x41): In function `main':
: undefined reference to `VLC_Create'
vlc-vlc.o(.text+0x9a): In function `main':
: undefined reference to `VLC_Init'
vlc-vlc.o(.text+0xb0): In function `main':
: undefined reference to `VLC_AddIntf'
vlc-vlc.o(.text+0xbe): In function `main':
: undefined reference to `VLC_CleanUp'
vlc-vlc.o(.text+0xca): In function `main':
: undefined reference to `VLC_Destroy'
vlc-vlc.o(.text+0xde): In function `main':
: undefined reference to `VLC_Destroy'
vlc-vlc.o(.text+0x17a): In function `SigHandler':
: undefined reference to `VLC_Die'

//////////////////////////////////////////////////////////////////////////////////////////////////////////

how can i solve the problem I am using red hat linux gcc version 3.2.2
i found one post where its adviced to use 2.9.0 version of gcc is it the right solution.
Please help me..
Vishal

Posted: 23 Nov 2006 08:38
by GiantDwarf
Hi vishalmokal,
first of all it would be good to provide some more informations about how you are trying to compile. Have you executed the bootstrap script? Have you configured the build? Have you installed all neccesary libs? What does your configure script looks like (probably post the output)...

Does the configure tell that everything is ok (correct automake etc.)?
I dont' think that the gcc is the problem i am using gcc 4.1.0 on suse

bye

Posted: 24 Nov 2006 04:40
by tsr
hmm, i cant give you an out-of-the-box solution, either.
but i guess you ran the bootstrap and configure scripts, because otherwise you would not have come this far.
what seems strange to me is that the compile error (its a compile error, right?) occurs within one of the source files that belongs to the VLC core, and doesn't seem to be related to any dependencies/libraries.
but frankly ... i can only offer crappy and bogus suggestions for you to solve your problem, because, like GiantDwarf said, you need to feed us with more input. :)

on the other hand - if you are new to (red hat) linunx - have you checked if there are any unofficial .rpms for the latest VLC ? if there is one, then it might save you from having to go through the whole compile process on your own. you might want to ask google, if you didn't do this already.

Posted: 24 Nov 2006 08:14
by GiantDwarf
Ok, so first of all it seems that the problem occurs during link time. It seems that libvlc.o (where the VLC_xxx functions are in ) can not be linked against vlc.o, or that libvlc.o does not exist. So please try to find out if libvlc.o is compiled correctly (search for it check the file date assure that it is really compiled (delete, recompile)). Have you unpacked vlc correctly (with the correct tar command)? Probably untar again into a clean folder and first of all check if the libvlc.c does exist.

good luck

Re: Error while compiling : undefined reference to `VLC_Vers

Posted: 10 Dec 2006 21:29
by littlejohn
hi,
I am new to linux. I am compiling VLC latest version according to the instructions given. but i am fiinding difficulties in solving the following problem.

how can i solve the problem I am using red hat linux gcc version 3.2.2
i found one post where its adviced to use 2.9.0 version of gcc is it the right solution.
Please help me..
Vishal
Check you have g++

Cheers.

Posted: 04 Jan 2007 23:05
by RĂ©mi Denis-Courmont
We do not support gcc < 3.3.
gcc 2.95 (and older) cannot compile VLC.
gcc 3.0-3.2 versions are widely known as buggy.