Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Error when typedef function

Status
Not open for further replies.

mithun mohan

Junior Member level 3
Joined
Jul 13, 2013
Messages
26
Helped
1
Reputation
2
Reaction score
1
Trophy points
3
Location
India,malappuram
Activity points
131
Hi there,
good wishes !!

COMPILER : mikroCpro for ARM

i get an error when i call a typedef 'ed function. the code is given below,



typedef void functions__(void);
functions__ add;

int main()
{
while(1)
{
add(); // error only comes when i 'call' this declared function
}
return 0;
}

void add(void)
{
// "function body"
}


compile error comes like this :- "Finished(with errors):"

no description whatsoever :(

This code runs fine in C30 compiler(MICROCHIP) ...Please help me out in this .I spent hours for rectifying this.This is driving me insane....

thanks in advance ...
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top