Linker Error with Dev-C++

Please support our C advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Jan 2009
Posts: 3
Reputation: Alice_Blue is an unknown quantity at this point 
Solved Threads: 0
Alice_Blue Alice_Blue is offline Offline
Newbie Poster

Linker Error with Dev-C++

 
0
  #1
Jan 22nd, 2009
Hi all!
I'm at work - newly hired - and I'm given this mpeg2 video codec

http://www.mpeg.org/MPEG/video/mssg-...-software.html

and in particular the decoder that exists in the folder mpeg2v12.zip.
It is code c written for gcc, so I decided to download MinGW and DevC/C++. I add all the files to the project and then clicked compile.Compilation always stops though because of errors with the linker:

[Linker error] undefined reference to `__cpu_features_init'
140:8 C:\MPEGORG_CODEC\src\mpeg2dec\spatscal.c ld returned 1 exit status

I am trying to solve this problem the whole day.I tried rebuild all, clean, compile, with all possible combinations but nothing worked.
I noticed though while googling a lot of links reporting linker errors with dev-c++.

I am just started learning C and C++ and I feel very discouraged...
Anybody any idea?


compilation log is attached.
Attached Files
File Type: txt log.txt (3.2 KB, 5 views)
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 15,662
Reputation: Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute 
Solved Threads: 1501
Team Colleague
Featured Poster
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is offline Offline
Still Learning

Re: Linker Error with Dev-C++

 
0
  #2
Jan 22nd, 2009
That error means it can not find the function cpu_features_init() in any of the file it compiled or in any of the libraries it is trying to link.

Check out those warnings -- they might actually be errors which are causing that link problem.
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.
Reply With Quote Quick reply to this message  
Join Date: Nov 2008
Posts: 32
Reputation: Ahmed_I is an unknown quantity at this point 
Solved Threads: 1
Ahmed_I Ahmed_I is offline Offline
Light Poster

Re: Linker Error with Dev-C++

 
0
  #3
Jan 24th, 2009
Could you tell us what include directives you used?
Last edited by Ahmed_I; Jan 24th, 2009 at 8:38 am.
Reply With Quote Quick reply to this message  
Join Date: Jan 2009
Posts: 3
Reputation: Alice_Blue is an unknown quantity at this point 
Solved Threads: 0
Alice_Blue Alice_Blue is offline Offline
Newbie Poster

Re: Linker Error with Dev-C++

 
0
  #4
Jan 26th, 2009
thanx a lot! i solved my problem - actually I don't know what was exactly.It just took me a day, of trying, and all of a sudden..

it might have been a small unintentional change to my code, who knows...
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:




Views: 2077 | Replies: 3
Thread Tools Search this Thread



Tag cloud for C
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC