OOPic Problems

This is a discussion on OOPic Problems within the Tech Board forums, part of the Community Boards category; We are trying to build a robot cart for our FIRST robotics team to carry our robot from the pit ...

  1. #1
    Banned
    Join Date
    Dec 2003
    Posts
    367

    Angry OOPic Problems

    We are trying to build a robot cart for our FIRST robotics team to carry our robot from the pit area to the competition area, and we are using an OOPic to get it to do its thing. Anywho, we tried to start programming it, and the C compiler it came with won't let us define main. It tells us that void cannot begin a statement, when we try to do this:
    Code:
    void main()
    {
       return;
    }
    Yes, I hate void main too, but this compiler is a piece of crap and requires main to be declared as void. Any ideas?

    PS: We tried int main first, and it said int was not defined.

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,855
    Well provide some links or some more information so others can read up on the problem.

    Do you mean this?
    Because if you do, then that counts as a free standing implementation, and the compiler can define main however it likes.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  3. #3
    Yes, my avatar is stolen anonytmouse's Avatar
    Join Date
    Dec 2002
    Posts
    2,544
    Try Sub void main(void)

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. No clue how to make a code to solve problems!
    By ctnzn in forum C Programming
    Replies: 8
    Last Post: 10-16-2008, 03:59 AM
  2. C Pointers Problems
    By mhelal in forum C Programming
    Replies: 8
    Last Post: 01-10-2007, 06:35 AM
  3. String Manipulation problems -_-
    By Astra in forum C Programming
    Replies: 5
    Last Post: 12-13-2006, 05:48 PM
  4. Rendering problems (DirectX?)
    By OnionKnight in forum Tech Board
    Replies: 0
    Last Post: 08-17-2006, 01:17 PM
  5. contest problems on my site
    By DavidP in forum Contests Board
    Replies: 4
    Last Post: 01-10-2004, 09:19 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21