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
1415  |  1417
Subject: 
main() not defined?
Newsgroups: 
lugnet.robotics.rcx.nqc
Date: 
Mon, 20 May 2002 19:45:45 GMT
Viewed: 
3770 times
  
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 parameter that is unique to Bricx
(set to default to RCX 2.0) or NQC (latest versions). One of two sample
programs I downloaded from Baum's site will compile, the other gives weird
errors. Of the sample code that compiles (simplesteer by Jason Ekstrand),
the task main() statement is no different than that in the Ferrari book
(page 107).

What is different is that Ekstrand's task starts other tasks, but I feel
that's a non-issue. Also, I can find no help on the actual error message,
either in the Bricx download nor on Baum's site (but I didn't browse very
far).

So, what might be the problem?

Thank you.

--
Remove INVALID from email address.



Message has 2 Replies:
  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)

5 Messages in This Thread:


Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

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