Click to See Complete Forum and Search --> : L2025 error


lucky6969b
October 26th, 2011, 08:01 PM
error L2025: sub_10 : symbol defined more than once


This function exists only once. But how come this error occurs?
I don't have .386 directive.
Thanks
Jack

lucky6969b
October 26th, 2011, 08:34 PM
Just coming back with more problems.
If I have a long list of file awaiting to be assembled, I can't feed them directly into the command line.
What can I do if I need to assemble 100+ files all at once?
Thanks
Jack

lucky6969b
October 26th, 2011, 08:58 PM
error L2025: sub_10 : symbol defined more than once


This function exists only once. But how come this error occurs?
I don't have .386 directive.
Thanks
Jack

I can get away with this one. Thanks

Eri523
October 27th, 2011, 06:59 AM
What can I do if I need to assemble 100+ files all at once?

As probably all the files are to be assembled with the same set of command line parameters, I think it's not too much effort (and needs to be done only once) to create a batch file for that with an ordinary editor. You get rid of the most tideous part of typing in all the file names by starting with a text file listing all the files created by a DOS command like dir /b *.asm >filelist.txt.

If you have a make tool (and know how to use it), of course you can write a make file instead of a batch file. That would drastically cut down build time when just a few of the source files have been changed.

lucky6969b
October 27th, 2011, 08:22 AM
fatal error L1102: unexpected end-of-file

I got this error too. When I add a message to a function. Beforehand, the original program assembles and links.
My code added

seg_b segment word public
mess db 'sub_10', 13, 10 <<< I add this line here

proc_X proc far
.....


The file format seems to be incorrect, however, I have used and not used the /omf switch to no avail.