473,382 Members | 1,442 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

C/C++ undefinded symbol problem

Hey,

I'm just wondering if anyone ever ran into this error while changing someone
elses code:

error while loading shared libraries: libfame.so.1: undefined symbol:
FAME_DECODER_MPEG

To put this in context, I have the source code for an mpeg4 encoder. I have
been trying to add functionality for a new profile. this has made it necessary
to copy a lot of code before changing it. Before getting this error I copied
fame_decoder_mpeg.c to fame_decoder_core.c and updated everything so it was
appears in the exact same way as the original class (the c file is really a
c++ class, created using structs).

Anyway, the error is being thrown at the following line, where my core profile
is being initialised:

FAME_PROFILE_MPEG4_CORE(profile)->FAME_OVERLOADED(init)(profile,context,params,buff er,size);

FAME_OVERLOADED is defined in fame.h:

/* object management */
#define FAME_EXTENDS(t) t super
#define FAME_NEW(t) t ## _constructor((t *) malloc(sizeof(t)))
#define FAME_CONSTRUCTOR(t) t * t ## _constructor(t *this)
#define FAME_DELETE(x) free(x)
#define FAME_OVERLOADED(x) super_ ## x

I don't really understand the above code though (a pointer(sry) to a tutorial
would
be great!).

Any help is greatly apreciated,
Cheers,
Brendan
--
"Anyone who abandons what is done for what aught to be done
learns his ruin rather than his preservation"

http://www.redbrick.dcu.ie/~keno/guestbook.jsp
Jul 22 '05 #1
3 1970
Mount Everist wrote:

With the kind of code you provide, I can only make a wild guess.
I'm just wondering if anyone ever ran into this error while changing someone
elses code:

error while loading shared libraries: libfame.so.1: undefined symbol:
FAME_DECODER_MPEG
What's FAME_DECODER_MPEG ?
<snip>
Anyway, the error is being thrown at the following line, where my core profile
is being initialised:

FAME_PROFILE_MPEG4_CORE(profile)->FAME_OVERLOADED(init)(profile,context,params,buff er,size);
What's FAME_PROFILE_MPEG4_CORE ?
FAME_OVERLOADED is defined in fame.h:

/* object management */
#define FAME_EXTENDS(t) t super
#define FAME_NEW(t) t ## _constructor((t *) malloc(sizeof(t)))
#define FAME_CONSTRUCTOR(t) t * t ## _constructor(t *this)
#define FAME_DELETE(x) free(x)
#define FAME_OVERLOADED(x) super_ ## x


Provide more code and we'll be able to help you.
Jonathan
Jul 22 '05 #2
Actually, I was hoping for more of a pointer to what could be causeing that
error in an app. I don't expect you to know anything about the code I'm using.

Anyway, I fixed the problem - it turned out I was using the wrong object name
(FAME_DECODER_MPEG insead of FAME_DECODER_CORE). Sounds simple, but I'm
dealing with a lot of code here.

Thanks for the follow up though. now I'm gonna try and find a way to stop my
email appearing in the cache-post-path!

Cheers,
Keno
During visiting hours Jonathan Mcdougall said:
Mount Everist wrote:

With the kind of code you provide, I can only make a wild guess.
I'm just wondering if anyone ever ran into this error while changing someone
elses code:

error while loading shared libraries: libfame.so.1: undefined symbol:
FAME_DECODER_MPEG


What's FAME_DECODER_MPEG ?
<snip>
Anyway, the error is being thrown at the following line, where my core profile
is being initialised:

FAME_PROFILE_MPEG4_CORE(profile)->FAME_OVERLOADED(init)(profile,context,params,buff er,size);


What's FAME_PROFILE_MPEG4_CORE ?
FAME_OVERLOADED is defined in fame.h:

/* object management */
#define FAME_EXTENDS(t) t super
#define FAME_NEW(t) t ## _constructor((t *) malloc(sizeof(t)))
#define FAME_CONSTRUCTOR(t) t * t ## _constructor(t *this)
#define FAME_DELETE(x) free(x)
#define FAME_OVERLOADED(x) super_ ## x


Provide more code and we'll be able to help you.
Jonathan

--
"Anyone who abandons what is done for what aught to be done
learns his ruin rather than his preservation"

http://www.redbrick.dcu.ie/~keno/guestbook.jsp
Jul 22 '05 #3
> During visiting hours Jonathan Mcdougall said:
Mount Everist wrote:

With the kind of code you provide, I can only make a wild guess.

I'm just wondering if anyone ever ran into this error while changing someone
elses code:

error while loading shared libraries: libfame.so.1: undefined symbol:
FAME_DECODER_MPEG
What's FAME_DECODER_MPEG ?
<snip>


Please, don't top-post.
Actually, I was hoping for more of a pointer to what could be causeing > that error in an app. I don't expect you to know anything
about the code I'm using.


So please include a complete "working" example of what your problem is.
You cannot expect receiving some help if we cannot determine what's
going on in your program.
Jonathan
Jul 22 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Vic Spainhower | last post by:
Hello, I'm just getting starting in php and MySQL and I've got my application working correctly on my local windows XP computer. Now, when I publish to my ISP it's not going so well, which is also...
4
by: Justin Carter | last post by:
Hi. I'm using VB6 and trying to read in a simple text file. I'm using a statement similar to the following, which generally works fine. Input #Item, variable1, variable2, variable3, etc. ...
3
by: Falk Fassmann | last post by:
Hello people, I have some problem with Debugging in MS Visual C++. I want to generate a TCP/IP-Socket. The compiling-process is fine but when I debugg the project there's occuring some errors...
6
by: Olivier Lechenne | last post by:
I am converting some projects from VS 6.0 to VS .NET 2003 and I get a linker error error LNK2001: unresolved external symbol ___security_cookie or error LNK2001: unresolved external symbol...
9
by: Prasad | last post by:
HI, I am a beginner in VC++.. I am trying to write a Win32 console application in visual studio.. I am using following header files.. #include <STRING> using namespace std; #include...
6
by: sadegh | last post by:
Hi I have a problem with my program in VC++6 When I compile it, the following errors are listed. I spend a lot of time on the groups.google.com to find its reason, but none of comments could...
5
by: bonnielym84 | last post by:
Im new here..didnt noe whether is this the rite way to post my problem..Really need help here..i've been stucked in this error from last wk..My problem is like this..Im using VC++ 6.0 to compile my C...
0
by: bonnielym84 | last post by:
Im new here and im not sure whether is this the right place for me to post my question..anyway..hope that you can help me..i have been stucked in this problem since last wk..My problem is..I'm using...
0
by: Ryan Gaffuri | last post by:
hlink72@hotmail.com (Eric) wrote in message news:<ab8d8b14.0308220550.54fb5f22@posting.google.com>... LNK1120 is a standard C++ error. you using Visual C++? Means your references a class that...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.