Thread: OOPic Problems

  1. #1

    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
    39,659
    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.

  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, 02: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, 12:17 PM
  5. contest problems on my site
    By DavidP in forum Contests Board
    Replies: 4
    Last Post: 01-10-2004, 09:19 PM