Page 1 of 1

Extern param not resolved

Posted: 13 Nov 2021 03:16
by mlanesmith
My first project, with code imported and massaged from MPLABX. Targeting MINI-PIC32MZ.

After clearing ALL compilation errors, I was asked to register my license; I did.

I now get "Extern param not resolved" from the Linker.

No file, line number = 0.

I even added an int param to see what happens.

Any hints as to where I should look?

Re: Extern param not resolved

Posted: 15 Nov 2021 14:19
by filip
Hi,

Can you please attach your project here ?

Regards,
Filip.

Re: Extern param not resolved FIXED

Posted: 15 Nov 2021 18:38
by mlanesmith
Hi Filip,

It’s a large project ported from Microchip’s IDE, but the obscure error can be reproduced with:

int main(int argc, char** argv) {
return 0;
}

FIX:

int main(void) {
return 0;
}

Perhaps the next person confused by that error will find this post?

Best,

Martin

Re: Extern param not resolved

Posted: 16 Nov 2021 14:13
by filip
Hi,

The main function does not have any parameters, therefor the error.

Regards,
Filip.

Re: Extern param not resolved

Posted: 17 Nov 2021 17:56
by mlanesmith
Perhaps the developers could improve the message.

The message is supposed to explain the mistake, rather than the mistake explaining the message.