To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.nqcOpen lugnet.robotics.rcx.nqc in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / NQC / 1416
  main() not defined?
 
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?
 
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?
 
(...) 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)
 
  Re: main() not defined?
 
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?
 
"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)

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR