I have to modify an old project done using Dynamic C 9.21 rel. and I
can’t use a newer release because I can’t modify a custom bootloader
that works almost with 9.21 so I have to live with it. So… the problem
is that I need to test the old release because there are some bugs on
it, then I am implementing a sort of unit test to the most complex
modules. I adapted a simple unit test source code I normally use for
ANSI C projects (basically I merged the .h and .c in a single .lib file)
but I have very strange errors at compile time. I try to attach the lib
file and the simplest test file (I don’t know if it will work) at this
email but I also save them on the file section of the group. File names
are mut.lib and TestCrc32.c
Every help welcome, thanks.
These are the errors I have:
line 9 : ERROR TESTCRC32.C : Need function definition or declaration.
line 9 : ERROR TESTCRC32.C : Syntax error - or garbage at end of
program.
line 10 : ERROR TESTCRC32.C : Syntax error - or garbage at end of
program.
line 10 : ERROR TESTCRC32.C : Need function definition or declaration.
line 11 : ERROR TESTCRC32.C : Old style function declaration missing
parameter declaration list.
line 11 : WARNING TESTCRC32.C : return is a keyword and should not
be used as an identifier.
line 12 : ERROR TESTCRC32.C : Syntax error - or garbage at end of
program.
line 12 : ERROR TESTCRC32.C : Need function definition or declaration.
line 15 : ERROR TESTCRC32.C : Old style function declaration missing
parameter declaration list.
line 16 : ERROR TESTCRC32.C : PASSED is out of scope/ not declared.
line 20 : ERROR TESTCRC32.C : Old style function declaration missing
parameter declaration list.
line 24 : WARNING TESTCRC32.C : Reference to ‘MUT_TST’ has no
corresponding prototype.
line 48 : WARNING TESTCRC32.C : Reference to ‘MUT_SUITE_TEST’ has no
corresponding prototype.
10 errors reached; further errors suppressed.