CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5

Thread: L2025 error

  1. #1
    Join Date
    Dec 2010
    Posts
    907

    L2025 error

    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

  2. #2
    Join Date
    Dec 2010
    Posts
    907

    Re: L2025 error

    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

  3. #3
    Join Date
    Dec 2010
    Posts
    907

    Re: L2025 error

    Quote Originally Posted by lucky6969b View Post
    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

  4. #4
    Join Date
    Jun 2010
    Location
    Germany
    Posts
    2,675

    Re: L2025 error

    Quote Originally Posted by lucky6969b View Post
    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.
    I was thrown out of college for cheating on the metaphysics exam; I looked into the soul of the boy sitting next to me.

    This is a snakeskin jacket! And for me it's a symbol of my individuality, and my belief... in personal freedom.

  5. #5
    Join Date
    Dec 2010
    Posts
    907

    Re: L2025 error

    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
    Code:
    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.
    Last edited by lucky6969b; October 27th, 2011 at 08:30 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured