Link to home
Start Free TrialLog in
Avatar of New_Alex
New_AlexFlag for Cyprus

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.sourceforge.net/

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 ==========

Open in new window


What the hell people ?

Thanks
Avatar of ambience
ambience
Flag of Pakistan image

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.
Avatar of New_Alex

ASKER

Where do I find that link library? And how do I link it to the project? Thanks
>> 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\Debug" or in "CoolPlayer219_Src\mad\Release" depending on the build configuration.

Just press "F5" after you opened the visual-studio-workspace.
Avatar of taggarwal_expert
taggarwal_expert

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->General->Output File path for all these libraries
3. Try adding  "..\zlib\debug\zlib.lib" "..\vorbis\debug\vorbis.lib" "..\ogg\debug\ogg.lib" "..\mad\debug\mad.lib" to CoolPlayer's Configuration Properties->Linker->Input->Additional Dependencies

In brief, project is unable to find the libraries
ASKER CERTIFIED SOLUTION
Avatar of sarabande
sarabande
Flag of Luxembourg image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SARA SARA SAAARRRRRRAAAAAAA

WOOOOWWWWW

That worked like a charm....!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

STAY WITH ME .........

Kisses