• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 549
  • Last Modified:

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
0
New_Alex
Asked:
New_Alex
1 Solution
 
ambienceCommented:
I believe you are missing a link library, probably mad.lib?
0
 
ambienceCommented:
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.
0
 
New_AlexAuthor Commented:
Where do I find that link library? And how do I link it to the project? Thanks
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
lomo74Commented:
you need zlib.lib and libmad.lib
read here
http://www.experts-exchange.com/Programming/Languages/CPP/Q_26972803.html#a35456206
ciao - Lorenzo -
0
 
ikeworkCommented:
>> 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.
0
 
taggarwal_expertCommented:
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
0
 
sarabandeCommented:
it can be a problem that  the libraries in the zipped file do not work for vc6.

but you can try:

at

   Tools - Options - Directories - Library Files

add the folder where you extracted the .lib files.

then at

  Project - Settings - Linker - Input - Object/Library Modules

add all the .lib files you extracted separated by space.

Sara
0
 
New_AlexAuthor Commented:
SARA SARA SAAARRRRRRAAAAAAA

WOOOOWWWWW

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

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

Kisses
0

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now