• Welcome to Jose's Read Only Forum 2023.
 

Understanding Oxygen's error messages

Started by Brian Alvarez, October 01, 2018, 11:44:24 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Brian Alvarez


Instead of having to guess or look everywhere, i would like to have this centralized post as a reference to compile time errors, and someone who knows
can reply explaining what to do? if possible?

Error:
unable to match param names

Code:

IF (hiword(wParam)=chr(0)) THEN
       MSGBOX " Button 1 is clicked "
END IF


Details:
The MSGBOX function is defined as follows:
FUNCTION MSGBOX(string sText, sys mOptions, string sCaption = "") AS LONG
' no code yet.
END FUNCTION

Brian Alvarez

A non optional parameter was omitted.

Perhaps a more apropriate error description would be, "missing non-optional parameter"?

Brian Alvarez

How about this one:

Linker found unidentified names:
::cb   level 0

Details:
None, no error line or extra details are provided.

Brian Alvarez


Charles Pegge

Hi Brian,

Your feedback on error reporting is most welcome.

I have made some improvements to the error reporting system, particularly for linker errors. More information is carried through to the linker in the next o2. It is self-compiled, and I am sitting on it like a broody hen :)

Chris Chancellor

Yes,  this is the spirit about O2

We learn as we go along and evolve O2 to become a more better compiler.  do the baby steps first
and soon we will be better off