Extern param not resolved

General discussion on mikroC AI for PIC32.
Post Reply
Author
Message
mlanesmith
Posts: 5
Joined: 13 Nov 2021 01:55

Extern param not resolved

#1 Post by mlanesmith » 13 Nov 2021 03:16

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?

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

Re: Extern param not resolved

#2 Post by filip » 15 Nov 2021 14:19

Hi,

Can you please attach your project here ?

Regards,
Filip.

mlanesmith
Posts: 5
Joined: 13 Nov 2021 01:55

Re: Extern param not resolved FIXED

#3 Post by mlanesmith » 15 Nov 2021 18:38

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

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

Re: Extern param not resolved

#4 Post by filip » 16 Nov 2021 14:13

Hi,

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

Regards,
Filip.

mlanesmith
Posts: 5
Joined: 13 Nov 2021 01:55

Re: Extern param not resolved

#5 Post by mlanesmith » 17 Nov 2021 17:56

Perhaps the developers could improve the message.

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

Post Reply

Return to “mikroC AI for PIC32 General”