torerik
November 10, 2011, 1:49pm
1
Hi,
I am getting a compilation error saying “Return type (re)declared after use.” on line 502 in a network application I am creating.
I have tried checking the different variables used in the function on line 502, but I am not trying to redeclare any of them after use.
Have anyone encountered this same error, or have any clue as to what the issue might be?
Hi,
Can you post a snippet of the code so we can see what is being declared? Make sure the details in the /*** beginheader */ block matches the function definition if it is in a lib file.
Regards,
Peter
torerik
November 11, 2011, 8:31am
3
Peter,
thank you, but I figured it out myself.
I was trying to use a function I had written before it had been interpreted by the compiler.
The error was solved by prototyping this function in the start of the file.
Regards,
Tor Erik