Error while compiling : undefined reference to `VLC_Version'

*nix specific usage questions
vishalmokal
New Cone
New Cone
Posts: 5
Joined: 20 Nov 2006 07:39
Location: MUMBAI

Error while compiling : undefined reference to `VLC_Version'

Postby vishalmokal » 22 Nov 2006 13:12

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

GiantDwarf
Blank Cone
Blank Cone
Posts: 12
Joined: 24 Oct 2006 10:07

Postby GiantDwarf » 23 Nov 2006 08:38

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

tsr
Blank Cone
Blank Cone
Posts: 25
Joined: 24 Nov 2006 03:47

Postby tsr » 24 Nov 2006 04:40

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.

GiantDwarf
Blank Cone
Blank Cone
Posts: 12
Joined: 24 Oct 2006 10:07

Postby GiantDwarf » 24 Nov 2006 08:14

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

littlejohn
Blank Cone
Blank Cone
Posts: 73
Joined: 04 May 2006 14:59

Re: Error while compiling : undefined reference to `VLC_Vers

Postby littlejohn » 10 Dec 2006 21:29

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.

Rémi Denis-Courmont
Developer
Developer
Posts: 15265
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Postby Rémi Denis-Courmont » 04 Jan 2007 23:05

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.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 4 guests