This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Create library with batch-file

Dear experts!

I'm trying to create a simple batch-file, that generates a library:

SET lib_debug=debug_lib.lib
IF NOT EXIST %lib_debug% GOTO create_lib
DEL %lib_debug%
:create_lib
lib51 create %lib_debug%
FOR %%i IN (..\obj_dbg\*.obj) DO (
lib51 add %%i to %lib_debug%)

So the lib is going to be created (fine so far).
But the lib is almost empty (<1KB). I've about 120 object-files with a total size of 8,8MB.
Why the obj want not to be added? Do I have to take notice on the order of adding obj-files to the lib?

Thanks in advance!

Kind regards,
Oliver