| | |
Linker Error with Dev-C++
Please support our C advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Jan 2009
Posts: 3
Reputation:
Solved Threads: 0
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.
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.
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.
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.
![]() |
Similar Threads
- Another [Linker error] undefined reference to `WinMain@16' (C++)
- [Linker error] undefined reference to `SDL_Init' (C++)
- linker error dev c++ (C++)
- Linker Error (C++)
- [Linker error] undefined reference to `CQTMovieFile::CQTMovieFile()' (C++)
- newmat linker error (C++)
- What is it meaned [Linker error] undefined reference to `MAPILogon@24' (C++)
- Dev-C++, GLUI linker error, undefined reference (C++)
- Linker Error>Undefined reference error to xyz (C++)
Other Threads in the C Forum
- Previous Thread: accepting input in string
- Next Thread: Main prog..help!!
Views: 2077 | Replies: 3
| Thread Tools | Search this Thread |
Tag cloud for C
#include * append array arrays bash binarysearch changingto char character cm copyanyfile copypdffile createprocess() database directory drawing dynamic execv feet fgets file floatingpointvalidation fork framework function functions getlogicaldrivestrin givemetehcodez global grade graphics gtkwinlinux histogram homework i/o ide include infiniteloop initialization input interest intmain() iso keyboard kilometer lazy license linked linkedlist linux list looping loopinsideloop. lowest matrix meter microsoft mqqueue mysql oddnumber odf open openwebfoundation overwrite pause pdf pointer pointers posix power process program programming pyramidusingturboccodes read recursion recv recvblocked reversing segmentationfault single socket socketprogramming spoonfeeding standard strchr string student suggestions system test testing threads unix urboc user whythiscodecausesegmentationfault win32api windowsapi






