|
/ * add.c * /
int add (int x, int y)
{
return (x + y);
}
Compile the add.c file to generate add.obj. Compiling environment: turbo c 2.0.
Then create an "empty" file named mymath.lib (create a new text document, and then change the file extension to .lib). Enter the OS shell and run tlib mymath.lib + add.obj
Error: bad OMF record type 0xFF encountered
Note: add.obj and tlib.exe (or tlib) are in the same directory. This error sometimes happens, but sometimes it doesn't. I have done it before, and no problems have occurred, but now there are problems. I suspected that it was a directory problem, but no matter how I changed the directory of the file (of course, the directory was changed accordingly when using the tlib command), the error remains.
Thank you for your help! |
|