| |

VerySource

 Forgot password?
 Register
Search
View: 734|Reply: 2

Problems when creating library files with tilb tool

[Copy link]

1

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-2-22 19:30:01
| Show all posts |Read mode
/ * 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!
Reply

Use magic Report

0

Threads

78

Posts

29.00

Credits

Newbie

Rank: 1

Credits
29.00

 China

Post time: 2020-5-8 19:15:01
| Show all posts
It seems that I haven't used tlib in a long time ...
Reply

Use magic Report

0

Threads

78

Posts

29.00

Credits

Newbie

Rank: 1

Credits
29.00

 China

Post time: 2020-5-9 21:15:02
| Show all posts
mymath.lib is being used?
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list