Results 1 to 6 of 6

Thread: Unexpected error occurred in code generator or linker

  1. #1

    Thread Starter
    Fanatic Member simonm's Avatar
    Join Date
    Sep 2000
    Location
    Devon, England
    Posts
    796

    Exclamation

    I get the above message when attempting to re-compile an ActiveX DLL and overwriting the file that I am also maintaining binary compatability with.

    I do exactly the same thing with many other ActiveX components without any problem so it onl affects this DLL.

    When I click on 'View error messages', it displays the following error:

    LINK : fatal error LNK1104: cannot open file
    "\\EX1\LANROOT\Compiled\Components\ecsPostCodeLookup.dll"
    Has anyone encountered this before?

  2. #2
    Fanatic Member
    Join Date
    Feb 2000
    Location
    Dunmow,Essex,England
    Posts
    898
    seems to me that there is a problem in the project. Create a new project cut and paste your code from the existing project and that should do it. Else if you can it may be worth unregistering and deleting the existing DLL (if you can), set the current project back to 'No compatiability' and compile.

  3. #3

    Thread Starter
    Fanatic Member simonm's Avatar
    Join Date
    Sep 2000
    Location
    Devon, England
    Posts
    796

    Unhappy OK.

    I will try what you have suggested but it is a new project and this started happening the first time I attempted to re-compile it.

    I looked through the Microsoft knowlege base for related articles and found one article that said Microsoft were aware of this problem but did not know why it occurred but were looking into it.

    The knowlege base article can be found at:

    http://support.microsoft.com/support...-GB&SD=gn&FR=0
    Everything I say is either loose interpretation of dubious facts or idle speculation rooted in irrational sentiment.

  4. #4
    Addicted Member
    Join Date
    Nov 2005
    Posts
    153

    Re: Unexpected error occurred in code generator or linker

    it's so Old Subject . LOL but i also Face the same problem:
    Microsoft (R) Incremental Linker Version 6.00.8447
    Copyright (C) Microsoft Corp 1992-1998. All rights reserved.

    LINK : fatal error LNK1181: cannot open input file "E:\Program Files\Microsoft Visual Studio\VB98\VBAEXE6.LIB"

    and i went to Microsoft there is no SOLUTION

    But i Check my File VBAEXE6.LIB it was not there
    So i just search the CD and found the File Finally copied it in the Dir ... Fixed the Problem


    Sorry for my Bad English

  5. #5
    PowerPoster Dave Sell's Avatar
    Join Date
    Mar 2004
    Location
    /dev/null
    Posts
    2,961

    Re: Unexpected error occurred in code generator or linker

    Looks like the DLL was compiled/registered on a LAN share. In order to preserver binary compatibility, the IDE must locate and interrogate the original file. If the file was registered on a LAN share that no longer exists, I could see this happenning.

    Do a REGSVR32.EXE -U on the DLL, then register it again in the %systemroot% and then try it.

    lol love those 4-year-old posts that pop up.
    Nobody knows what software they want until after you've delivered what they originally asked for.

    Don't solve problems which don't exist.

    "If I had eight hours to cut down a tree, I'd spend six hours sharpening my axe." --- Abraham Lincoln (1809-1865)

    2 idiots don't make a genius.

  6. #6
    Frenzied Member yrwyddfa's Avatar
    Join Date
    Aug 2001
    Location
    England
    Posts
    1,253

    Re: Unexpected error occurred in code generator or linker

    I've had the same problem numerous times. I think it has something to do with the ODL reflection inside the VB IDE!

    Although MS method works well most of the time, there will be a time where you're going to need to turn of binary compatibility and regenerate all those CLSIDS,GUIDS etc.

    . . . and recompile every dependent project.

    Yuk!
    "As far as the laws of mathematics refer to reality, they are not certain; and as far as they are certain, they do not refer to reality." - Albert Einstein

    It's turtles! And it's all the way down

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