| | main() not defined? Brian Smither
|
| | I get this error - "main() not defined" - when compiling. The code is copied straight from the Ferrari book. While C is the language of my choice, the line of code isn't so obtuse as to hide errors from me. So probably there is some other requisite (...) (23 years ago, 20-May-02, to lugnet.robotics.rcx.nqc)
|
| | |
| | | | Re: main() not defined? Trevyn Watson
|
| | | | Did you capitalise "Main"? It doesnt seem to work if you do. NQC is case sensitive, just like C. Trevyn. (...) (23 years ago, 21-May-02, to lugnet.robotics.rcx.nqc)
|
| | | | |
| | | | | | Re: main() not defined? Brian Smither
|
| | | | | Thank you, kind sir, for that small but important lesson in C programming. That was the problem. (And, for everyone's information - FEI - Ferrari's book also has Main() capitalized.) Trevyn Watson <4tee2@rogers.com> wrote in (...) (23 years ago, 21-May-02, to lugnet.robotics.rcx.nqc)
|
| | | | | |
| | | | | | | Re: main() not defined? Mario Ferrari
|
| | | | | "Brian Smither" <bsmitherINVALID@INV...tlink.net> : (...) Sorry for that. I have typed all the code used in the book into BricxCC, and every program or code snippet has been compiled and checked before being pasted into the book. However, seems (...) (23 years ago, 21-May-02, to lugnet.robotics.rcx.nqc)
|
| | | | | |
| | | | Re: main() not defined? John Hansen
|
| | | | (...) The code on page 107 has "main()" capitalized (i.e., "Main()") and it shouldn't. The error I get is "task 'main' not defined". I'm relatively certain it is a capitalization problem. John Hansen (URL) (23 years ago, 21-May-02, to lugnet.robotics.rcx.nqc)
|
| | | | |