Sunday, October 18, 2009

OOP344 Assignment 1 compile under Borland C++

I followed the instruction and compiled my code.
I got a lot of error:
warning w8065 test.c 73: call to function 'io_init' with no prototype in function main
many these kind of error.
like all my functions are no prototype.
What should I do under ciol.c?
VCC and LINUX are past already.
Thanks ahead.

4 comments:

  1. Hm the link didn't work. Check this out

    http://dennyp.wordpress.com/2009/10/13/oop344-assignment-1-on-borland/

    ReplyDelete
  2. Thanks for helping me.
    That link really works.
    Now I fixed all no prototype errors.
    I have new problem now:
    Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
    test.c:
    Error E2187 ciol.h 123: Unexpected end of file in conditional started on line 1
    Warning W8060 test.c 205: Possibly incorrect assignment in function resetStr
    *** 1 errors in Compile ***
    ciol.c:
    Error E2187 ciol.h 123: Unexpected end of file in conditional started on line 1
    *** 1 errors in Compile ***
    line 123 in ciol.h is the last line, nothing there.
    in ciol.h, only #ifdnf #else #endif statements.
    I don't know why the last line is error.
    Also line 205 in test.c is while(str[i] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwzyz Garbage after data"[i])i++;
    What's wrong with one?

    ReplyDelete
  3. Sounds like it's missing an #endif

    ReplyDelete
  4. Thanks for helping me.
    You're right. I missed one #endif at the end.
    VCC and LINUX all not found this problem.
    Now it is running perfectly.
    I can hand on my assignment now.

    ReplyDelete