| | |
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!!
| Thread Tools | Search this Thread |
Tag cloud for C
adobe ansi api array arrays bash binarysearch centimeter char convert copyanyfile copypdffile cprogramme createcopyoffile createprocess() csyntax directory dynamic fflush file fork frequency getlasterror givemetehcodez global graphics gtkgcurlcompiling hardware highest homework i/o ide inches infiniteloop initialization interest kilometer km lazy linked linkedlist linux linuxsegmentationfault list locate logical_drives match matrix meter microsoft motherboard multi mysql open opendocumentformat opensource openwebfoundation owf pattern pdf performance pointer pointers posix power problem probleminc program programming pyramidusingturboccodes read recursion recv repetition scanf scheduling segmentationfault send shape single socketprograming socketprogramming spoonfeeding stack standard strchr string strings structures suggestions system systemcall test testautomation unix user voidmain() wab win32api windows.h






