New_Alex
asked on
VS C++ 2010 Express and Pro DO NOT COMPILE THE PROGRAM
I am trying to compile the program "Cool Player" found at this site:
http://coolplayer.sourcefo rge.net/
Source Code downloaded at:
http://prdownloads.sourceforge.net/coolplayer/CoolPlayer219_Src.zip?download
But I get following errors:
What the hell people ?
Thanks
http://coolplayer.sourcefo
Source Code downloaded at:
http://prdownloads.sourceforge.net/coolplayer/CoolPlayer219_Src.zip?download
But I get following errors:
5>------ Build started: Project: coolplayer, Configuration: Debug Win32 ------
5>Build started 24/04/2011 02:05:33.
5>InitializeBuildStatus:
5> Touching ".\Debug\coolplayer.unsuccessfulbuild".
5>ClCompile:
5> All outputs are up-to-date.
5> All outputs are up-to-date.
5>ResourceCompile:
5> All outputs are up-to-date.
5>ManifestResourceCompile:
5> All outputs are up-to-date.
5>CompositeFile.obj : error LNK2019: unresolved external symbol _crc32 referenced in function _CF_GetSubFile
5>CompositeFile.obj : error LNK2019: unresolved external symbol _inflateEnd referenced in function _CF_GetSubFile
5>CompositeFile.obj : error LNK2019: unresolved external symbol _inflate referenced in function _CF_GetSubFile
5>CompositeFile.obj : error LNK2019: unresolved external symbol _inflateInit2_ referenced in function _CF_GetSubFile
5>CPI_Player_CoDec_MPEG.obj : error LNK2001: unresolved external symbol _mad_timer_zero
5>CPI_Player_CoDec_MPEG.obj : error LNK2019: unresolved external symbol _mad_stream_finish referenced in function _cleanup
5>CPI_Player_CoDec_MPEG.obj : error LNK2019: unresolved external symbol _mad_frame_finish referenced in function _cleanup
5>CPI_Player_CoDec_MPEG.obj : error LNK2019: unresolved external symbol _mad_timer_count referenced in function _CPP_OMMP3_OpenFile
5>CPI_Player_CoDec_MPEG.obj : error LNK2019: unresolved external symbol _mad_timer_set referenced in function _CPP_OMMP3_OpenFile
5>CPI_Player_CoDec_MPEG.obj : error LNK2019: unresolved external symbol _mad_timer_multiply referenced in function _CPP_OMMP3_OpenFile
5>CPI_Player_CoDec_MPEG.obj : error LNK2019: unresolved external symbol _mad_synth_init referenced in function _CPP_OMMP3_OpenFile
5>CPI_Player_CoDec_MPEG.obj : error LNK2019: unresolved external symbol _mad_frame_init referenced in function _CPP_OMMP3_OpenFile
5>CPI_Player_CoDec_MPEG.obj : error LNK2019: unresolved external symbol _mad_stream_init referenced in function _CPP_OMMP3_OpenFile
5>CPI_Player_CoDec_MPEG.obj : error LNK2019: unresolved external symbol _mad_frame_decode referenced in function _scan_header
5>CPI_Player_CoDec_MPEG.obj : error LNK2019: unresolved external symbol _mad_stream_buffer referenced in function _scan_header
5>CPI_Player_CoDec_MPEG.obj : error LNK2019: unresolved external symbol _mad_bit_read referenced in function _parse_xing
5>CPI_Player_CoDec_MPEG.obj : error LNK2019: unresolved external symbol _mad_synth_frame referenced in function _CPP_OMMP3_Seek
5>CPI_Player_CoDec_MPEG.obj : error LNK2019: unresolved external symbol _mad_timer_add referenced in function _CPP_OMMP3_Seek
5>CPI_Player_CoDec_MPEG.obj : error LNK2019: unresolved external symbol _mad_synth_mute referenced in function _CPP_OMMP3_Seek
5>CPI_Player_CoDec_MPEG.obj : error LNK2019: unresolved external symbol _mad_frame_mute referenced in function _CPP_OMMP3_Seek
5>CPI_Player_CoDec_MPEG.obj : error LNK2019: unresolved external symbol _mad_timer_compare referenced in function _CPP_OMMP3_GetFileInfo
5>CPI_Player_CoDec_OGG.obj : error LNK2019: unresolved external symbol _ov_time_total referenced in function _CPP_OMOGG_OpenFile
5>CPI_PlaylistItem.obj : error LNK2001: unresolved external symbol _ov_time_total
5>CPI_Player_CoDec_OGG.obj : error LNK2019: unresolved external symbol _ov_bitrate referenced in function _CPP_OMOGG_OpenFile
5>CPI_Player_CoDec_OGG.obj : error LNK2019: unresolved external symbol _ov_info referenced in function _CPP_OMOGG_OpenFile
5>CPI_Player_CoDec_OGG.obj : error LNK2019: unresolved external symbol _ov_streams referenced in function _CPP_OMOGG_OpenFile
5>CPI_Player_CoDec_OGG.obj : error LNK2019: unresolved external symbol _ov_open_callbacks referenced in function _CPP_OMOGG_OpenFile
5>CPI_Player_CoDec_OGG.obj : error LNK2019: unresolved external symbol _ov_clear referenced in function _CPP_OMOGG_OpenFile
5>CPI_PlaylistItem.obj : error LNK2001: unresolved external symbol _ov_clear
5>CPI_Player_CoDec_OGG.obj : error LNK2019: unresolved external symbol _ov_pcm_seek referenced in function _CPP_OMOGG_Seek
5>CPI_Player_CoDec_OGG.obj : error LNK2019: unresolved external symbol _ov_pcm_total referenced in function _CPP_OMOGG_Seek
5>CPI_Player_CoDec_OGG.obj : error LNK2019: unresolved external symbol _ov_read referenced in function _CPP_OMOGG_GetPCMBlock
5>CPI_Player_CoDec_OGG.obj : error LNK2019: unresolved external symbol _ov_time_tell referenced in function _CPP_OMOGG_GetCurrentPos_secs
5>CPI_PlaylistItem.obj : error LNK2019: unresolved external symbol _ov_open referenced in function _CPLI_CalculateLength_OGG
5>CPI_PlaylistItem.obj : error LNK2019: unresolved external symbol _ov_comment referenced in function _CPLI_ReadTag_OGG
5>CPI_PlaylistItem.obj : error LNK2001: unresolved external symbol _crc_lookup
5>.\Debug\coolplayer.exe : fatal error LNK1120: 34 unresolved externals
5>
5>Build FAILED.
5>
5>Time Elapsed 00:00:02.14
========== Build: 4 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
What the hell people ?
Thanks
I believe you are missing a link library, probably mad.lib?
or libmad
http://www.underbit.com/products/mad/
Did you check on the requirements for compiling? You might have to do some extra stuff like downloading 3rd party libs.
http://www.underbit.com/products/mad/
Did you check on the requirements for compiling? You might have to do some extra stuff like downloading 3rd party libs.
ASKER
Where do I find that link library? And how do I link it to the project? Thanks
you need zlib.lib and libmad.lib
read here
https://www.experts-exchange.com/questions/26972803/C-Simple-line-to-play-an-MP3-File-C-MyFile-MP3.html?anchorAnswerId=35456206#a35456206
ciao - Lorenzo -
read here
https://www.experts-exchange.com/questions/26972803/C-Simple-line-to-play-an-MP3-File-C-MyFile-MP3.html?anchorAnswerId=35456206#a35456206
ciao - Lorenzo -
>> Where do I find that link library? And how do I link it to the project? Thanks
The libs are part of the zip that you downloaded. Just build the entire workspace, "mad.lib" will be in "CoolPlayer219_Src\mad\Deb ug" or in "CoolPlayer219_Src\mad\Rel ease" depending on the build configuration.
Just press "F5" after you opened the visual-studio-workspace.
The libs are part of the zip that you downloaded. Just build the entire workspace, "mad.lib" will be in "CoolPlayer219_Src\mad\Deb
Just press "F5" after you opened the visual-studio-workspace.
All these library projects are in zipped version. But problem is you are having project for VC6 and while opening in VS2010, it might change the project files. I tried it running in VS 2008, and it perfectly works fine for me. From the errors, following might be the problems:
1. Library projects (mad, ogg, vorbis, zlib) are not included in project workspace.
2. If those were there, check Configuration Properties->Librarian->Gen eral->Outp ut File path for all these libraries
3. Try adding "..\zlib\debug\zlib.lib" "..\vorbis\debug\vorbis.li b" "..\ogg\debug\ogg.lib" "..\mad\debug\mad.lib" to CoolPlayer's Configuration Properties->Linker->Input- >Additiona l Dependencies
In brief, project is unable to find the libraries
1. Library projects (mad, ogg, vorbis, zlib) are not included in project workspace.
2. If those were there, check Configuration Properties->Librarian->Gen
3. Try adding "..\zlib\debug\zlib.lib" "..\vorbis\debug\vorbis.li
In brief, project is unable to find the libraries
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
SARA SARA SAAARRRRRRAAAAAAA
WOOOOWWWWW
That worked like a charm....!!!!!!!!!!!!!!!!! !!!!!!!!!! !!!!!!!!!! !!!!!
STAY WITH ME .........
Kisses
WOOOOWWWWW
That worked like a charm....!!!!!!!!!!!!!!!!!
STAY WITH ME .........
Kisses