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 / 1417
1416  |  1418
Subject: 
Re: main() not defined?
Newsgroups: 
lugnet.robotics.rcx.nqc
Date: 
Tue, 21 May 2002 01:58:11 GMT
Viewed: 
3799 times
  
Did you capitalise "Main"? It doesnt seem to work if you do.

NQC is case sensitive, just like C.

Trevyn.

Brian Smither wrote:

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.





Message has 1 Reply:
  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)

Message is in Reply To:
  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)

5 Messages in This Thread:


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

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

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