Problem compiling: unresolved externals

mikroC, mikroBasic and mikroPascal PRO for Microchip’s 32-bit PIC MCUs
Post Reply
Author
Message
chandranorth
Posts: 1
Joined: 23 May 2018 01:48

Problem compiling: unresolved externals

#1 Post by chandranorth » 23 May 2018 02:11

I am trying to port a program from Micropascal Pro for PIC for the Ready for Pic board (compiled and working successfully) to Micropascal Pro for PIC32 for the PIC32MZ. The program syntax seems to compile without errors, but I receive errors related to unresolved external libraries, in particular _Lib_USB_MZ_HS.c

The compiler seems to find the _Lib_USB_MZ.emcl file, which is in the appropriate USES folder. There is no _Lib_USB_MZ.mpas file to add as source.

For further information, I've appended the compiler log file and attached the program file. Any help would be greatly appreciated!

Venkat Chandrasekhar

Compiler log file:
______________________
0 1 mPPIC32.exe -MSF -DBG -pP32MZ1024EFH064 -Y -DL -SSA -EBASE 0x9FC01000 -INTDEF MV_SRS7_IS32 -O11111114 -fo200 -N"C:\home\chandra\MikroPascal Pic files\PIC32PLL\PIC32PLL.mpp32" -SP"C:\Users\Public\Documents\Mikroelektronika\mikroPascal PRO for PIC32\Defs\" -SP"C:\Users\Public\Documents\Mikroelektronika\mikroPascal PRO for PIC32\Uses\" -SP"C:\home\chandra\MikroPascal Pic files\PIC32PLL\" -SP"C:\Users\Public\Documents\Mikroelektronika\mikroPascal PRO for PIC32\Packages\FAT32 Library\Uses\" -SP"C:\Users\Public\Documents\Mikroelektronika\mikroPascal PRO for PIC32\Packages\FT800\Uses\" -SP"C:\Users\Public\Documents\Mikroelektronika\mikroPascal PRO for PIC32\Packages\FT810\Uses\" -SP"C:\Users\Public\Documents\Mikroelektronika\mikroPascal PRO for PIC32\Packages\FT812\Uses\" -SP"C:\Users\Public\Documents\Mikroelektronika\mikroPascal PRO for PIC32\Examples\Extra Boards\DAC (SPI)\" "__Lib_CP0.emcl" "__Lib_Math.emcl" "__Lib_MathDouble_MZ_EF.emcl" "__Lib_System_MZ_EF.emcl" "__Lib_SoftResetDma.emcl" "__Lib_Delays.emcl" "__Lib_CType.emcl" "__Lib_String.emcl" "__Lib_CStdlib.emcl" "__Lib_MemManager.emcl" "__Lib_Conversions_EF.emcl" "__Lib_Time.emcl" "__Lib_Trigon_EF.emcl" "__Lib_Trigonometry.emcl" "__Lib_Button.emcl" "__Lib_Keypad4x4.emcl" "__Lib_Manchester.emcl" "__Lib_OneWire.emcl" "__Lib_PS2.emcl" "__Lib_Sound.emcl" "__Lib_SoftI2C.emcl" "__Lib_SoftSPI.emcl" "__Lib_SoftUART.emcl" "__Lib_ADC_24ch_2_MZ.emcl" "__Lib_ETHERNET.emcl" "__Lib_FLASH_MZ.emcl" "__Lib_I2C_1345_MZ.emcl" "__Lib_PWM_MZ.emcl" "__Lib_SPI_1234.emcl" "__Lib_UART_123456_MZ.emcl" "__Lib_CAN_12.emcl" "__Lib_PPS_P32MZ_64CAN.emcl" "__Lib_USB_MZ_HS.emcl" "__Lib_PortExpander.emcl" "__Lib_CANSPI.emcl" "__Lib_CF.emcl" "__Lib_CFFat16.emcl" "__Lib_GlcdFonts.emcl" "__Lib_Glcd_MZ.emcl" "__Lib_LcdConsts.emcl" "__Lib_Lcd.emcl" "__Lib_Mmc.emcl" "__Lib_MmcFat16.emcl" "__Lib_MmcFat16_Defs.emcl" "__Lib_RS485.emcl" "__Lib_S1D13700.emcl" "__Lib_T6963C.emcl" "__Lib_T6963C_Consts.emcl" "__Lib_SPIGlcd.emcl" "__Lib_SPILcd.emcl" "__Lib_SPILcd8.emcl" "__Lib_SPIT6963C.emcl" "__Lib_SPIT6963C_Const.emcl" "__Lib_EthEnc24j600.emcl" "__Lib_EthEnc28j60.emcl" "__Lib_TFT.emcl" "__Lib_TFT_Defs.emcl" "__Lib_TouchPanel_TFT.emcl" "__Lib_TouchPanel.emcl" "__Lib_BitReverseComplex.emcl" "__Lib_FFT.emcl" "__Lib_FirRadix.emcl" "__Lib_IirRadix.emcl" "__Lib_Matrices.emcl" "__Lib_Q15_EF.emcl" "__Lib_Q31_EF.emcl" "__Lib_TwiddleFactors.emcl" "__Lib_Vectors.emcl" "__Lib_STMPE610.emcl" "__Lib_FAT32_Types_MZ.emcl" "__Lib_FAT32_Driver_MZ.emcl" "__Lib_FAT32_Defs_MZ.emcl" "__Lib_FAT32_MZ.emcl" "__Lib_FT800_Types_MZ.emcl" "__Lib_FT800_Defs_MZ.emcl" "__Lib_FT800_MZ.emcl" "__Lib_FT810_Types_MZ.emcl" "__Lib_FT810_Defs_MZ.emcl" "__Lib_FT810_MZ.emcl" "__Lib_FT812_Types_MZ.emcl" "__Lib_FT812_Defs_MZ.emcl" "__Lib_FT812_MZ.emcl" "PIC32PLL.mpas"
diagnostics: 0 133 Compilation Started C:\home\chandra\MikroPascal Pic files\PIC32PLL\PIC32PLL.mpas
hint: 1 1015 Hint: Compiling unit "C:\home\chandra\MikroPascal Pic files\PIC32PLL\PIC32PLL.mpas" PIC32PLL.mpas
hint: 163 1021 Hint: interrupt handler (Timer1Interrupt at 0x0004) PIC32PLL.mpas
warning: 415 1509 Warning: Implicit typecast performed from "dword" to "real" PIC32PLL.mpas
warning: 284 1520 variable 'buffer' might not have been initialized PIC32PLL.mpas
hint: 203 1011 Hint: Variable "ChangeOnlyLowWord" has been eliminated by optimizer PIC32PLL.mpas
hint: 266 1011 Hint: Variable "buffer4" has been eliminated by optimizer PIC32PLL.mpas
hint: 527 1010 Hint: Unit "PIC32PLL.mpas" has been recompiled PIC32PLL.mpas
diagnostics: 0 134 Compiled Successfully C:\home\chandra\MikroPascal Pic files\PIC32PLL\PIC32PLL.mpas
diagnostics: 0 139 All files Compiled in 78 ms
error: 0 360 Unresolved extern 'hidInit0' __Lib_USB_MZ_HS.c
error: 0 360 Unresolved extern 'configDescriptor1' __Lib_USB_MZ_HS.c
error: 0 360 Unresolved extern 'device_dsc' __Lib_USB_MZ_HS.c
error: 0 360 Unresolved extern 'stringDescriptors' __Lib_USB_MZ_HS.c
error: 0 360 Unresolved extern 'hidInit0' __Lib_USB_MZ_HS.c
error: 0 360 Unresolved extern 'configDescriptor1' __Lib_USB_MZ_HS.c
error: 0 360 Unresolved extern 'device_dsc' __Lib_USB_MZ_HS.c
error: 0 360 Unresolved extern 'stringDescriptors' __Lib_USB_MZ_HS.c
error: 0 453 Unsuccessful linking 'PIC32PLL.mpp32' Unsuccessful linking 'PIC32PLL.mpp32'
error: 0 102 Finished (with errors): 22 May 2018, 19:40:29 PIC32PLL.mpp32

User avatar
filip.grujcic
Posts: 822
Joined: 14 May 2018 08:34

Re: Problem compiling: unresolved externals

#2 Post by filip.grujcic » 24 May 2018 08:10

Hello,

I believe you opened a ticket regarding this issue on our helpdesk, so let us continue there.

Regards,
Filip Grujcic

Post Reply

Return to “PIC32 PRO Compilers”