MP3 example code compilation error

General discussion on mikroBasic PRO for dsPIC30/33 and PIC24.
Post Reply
Author
Message
calixarene
Posts: 17
Joined: 03 Apr 2012 06:31

MP3 example code compilation error

#1 Post by calixarene » 25 Apr 2012 05:27

I got error messages when I tried to compile example code from the accompany CD of the mikromedia dspic33 board and the latest example code from mikroe web site with both mikroBasicPRO ver 5.2 and 5.6. Here are the error messages output .

*****************************
0 1 mBDsPic.exe -MSF -DBG -pP33FJ256GP710A -Y -DL -SSA -O11111114 -fo32 -N"E:\Mikroe Stuff\New mikromedia for dspic33\MP3\MP3.mbpds" -SP"C:\Users\Public\Documents\Mikroelektronika\mikroBasic PRO for dsPIC\defs\" -SP"C:\Users\Public\Documents\Mikroelektronika\mikroBasic PRO for dsPIC\uses\" -SP"E:\Mikroe Stuff\New mikromedia for dspic33\MP3\" -SP"E:\Mikroe Stuff\New mikromedia for dspic33\mikromedia_dspic33_examples\MikroMedia for dsPIC33 Examples\mikromedia for dsPIC33 Examples - mikroBasic PRO for dsPIC\MP3\" -SP"E:\Mikroe Stuff\New mikromedia for dspic33\mikromedia_dspic33_examples\MikroMedia for dsPIC33 Examples\mikromedia for dsPIC33 Examples - mikroBasic PRO for dsPIC\" "__Lib_Math.mcl" "__Lib_MathDouble.mcl" "__Lib_System.mcl" "__Lib_Delays.mcl" "__Lib_CType.mcl" "__Lib_SPI_12.mcl" "__Lib_UART_12_p24_p33.mcl" "__Lib_Mmc.mcl" "__Lib_MmcFat16.mcl" "MP3.mbas"
0 133 Compilation Started E:\Mikroe Stuff\New mikromedia for dspic33\MP3\MP3.mbas
1 1015 Hint: Compiling unit "E:\Mikroe Stuff\New mikromedia for dspic33\MP3\MP3.mbas" MP3.mbas
212 1516 Warning: Source size (16) does not match destination size (50) MP3.mbas
217 1516 Warning: Source size (38) does not match destination size (50) MP3.mbas
220 1516 Warning: Source size (20) does not match destination size (50) MP3.mbas
223 1516 Warning: Source size (13) does not match destination size (50) MP3.mbas
251 1516 Warning: Source size (17) does not match destination size (50) MP3.mbas
254 1516 Warning: Source size (23) does not match destination size (50) MP3.mbas
133 1011 Hint: Variable "volume" has been eliminated by optimizer MP3.mbas
257 1010 Hint: Unit "MP3.mbas" has been recompiled MP3.mbas
0 134 Compiled Successfully E:\Mikroe Stuff\New mikromedia for dspic33\MP3\MP3.mbas
0 139 All files Compiled in 171 ms
0 360 Unresolved extern 'memset' __Lib_MmcFat16.mpas
0 360 Unresolved extern 'strlen' __Lib_MmcFat16.mpas
0 360 Unresolved extern 'memset' __Lib_MmcFat16.mpas
0 360 Unresolved extern 'memcmp' __Lib_MmcFat16.mpas
0 360 Unresolved extern 'memset' __Lib_MmcFat16.mpas
0 360 Unresolved extern 'memcpy' __Lib_MmcFat16.mpas
0 360 Unresolved extern 'memset' __Lib_MmcFat16.mpas
0 360 Unresolved extern 'memcpy' __Lib_MmcFat16.mpas
0 453 Unsuccessful linking 'MP3.mbpds' Unsuccessful linking 'MP3.mbpds'
0 102 Finished (with errors): 25 Apr 2012, 11:48:24 MP3.mbpds
************************************

What is the possible cause and how to fix it? I am using the dongle version.

By the way, what is the meaning of the warning message"Warning: Source size (XX) does not match destination size (XX) MP3.mbas". When I click on the error it leads me to line started with UART2.

Thanks.

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: MP3 example code compilation error

#2 Post by filip » 25 Apr 2012 09:32

Hi,

Judging by this, I suspect that the String library isn't included in the Library Manager.
Please, include it and see if the project can be compiled now.

As for the warnings, they show that the string which are manipulated haven't got the same size, i.e. copying the smaller string to a larger string.

Regards,
Filip.

calixarene
Posts: 17
Joined: 03 Apr 2012 06:31

Re: MP3 example code compilation error

#3 Post by calixarene » 26 Apr 2012 02:36

Thanks. The error disappear when I include the string library.

I am a newbie to this compiler. :oops:

Is there any difference/short coming between enabling all libraries during compilation as suggested in the "Creating the first project in... " manual and enabling only the libraries necessary for the project?

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: MP3 example code compilation error

#4 Post by filip » 26 Apr 2012 11:41

Hi,

The difference may lay in the compilation time; with all libraries included the compilation time could be slightly longer.
As for the memory usage there is no difference.

Regards,
Filip.

Post Reply

Return to “mikroBasic PRO for dsPIC30/33 and PIC24 General”