Gen EDGE

  • 1.  LINK: fatal error LNK1181

    Posted Apr 17, 2018 10:22 AM

    Hello there !!

    Using free version of Gen 8.6...

     

    Please, see message below.

     

     

    Compiles for QC.DLL Dependencies done
    ...Linking Load Module DLL QC
    link /NOLOGO /DLL /SUBSYSTEM:WINDOWS /entry:_DllMainCRTStartup@12 /OUT:"C:\CA GEN\Models\draft_1.ief\c\QC.DLL" /implib:"C:\CA GEN\Models\draft_1.ief\c\QC.LIB" /def:"C:\CA GEN\Models\draft_1.ief\c\QC.DEF" /OUT:"C:\CA GEN\Models\draft_1.ief\c\QC.DLL" @"C:\CA GEN\Models\draft_1.ief\c\QC.RSP" @"C:\CA GEN\Models\draft_1.ief\c\QC.LNK"
    LINK : fatal error LNK1181: cannot open input file 'C:\Program.obj'
    NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\link.EXE"' : return code '0x49d'
    Stop.
    **************************** 
    Link step for QC.DLL using C:\CA GEN\Models\draft_1.ief\c\QC.LNK failed with errors. 
    **************************** 
    IEFSIGNAL:FAIL
    *** Build for Load Module QC Failed. ***
    Important! Review above for any errors.

     

    I don`t know where this PROGRAM.OBJ is coming from.

     

    This is how my build tool is setted.

     

     

    Missing anything ?

     

     

    Thanks,

    Marco Bomfim



  • 2.  Re: LINK: fatal error LNK1181
    Best Answer

    Broadcom Employee
    Posted Apr 17, 2018 11:09 AM

    Marco,

     

      The cause of the 'C:\Program.obj' is because it is looking for "C:\Program Files (x86)\...", so there is some parameter that has spaces and therefore needs double quotes.  Now, you must search your Build Tool / Profile Manager options for anything that you have added or modified.  Another place to look is the link file "C:\CA GEN\Models\draft_1.ief\c\QC.LNK".  Look for any path that contains spaces that does not have surrounding double quotes.

      If you do not find the problem, attach or copy some of this information to this post so that it can be reviewed.

     

    Cheers,

    Andy



  • 3.  Re: LINK: fatal error LNK1181

    Posted Apr 17, 2018 11:57 AM

    Below is a snapshot of my Build Tool

     

     

    I did not find any spaces.

    Actually I did not change too much things.

     

     



  • 4.  Re: LINK: fatal error LNK1181

    Posted Apr 17, 2018 02:12 PM

    I have deleted the old trancode and let GEN to determine one and then I got this message:

     

    ------------------------------------------------------------------------------------------------------------

    Created c:\CA GEN\Models\draft_1.ief\c\QC.chm, 11,872 bytes

    Compression increased file by 2,363 bytes.

    ...Compiling QC - QCONC
    cl -c -EHsc -Zc:forScope- -W3 -Od -nologo -DCGGUI -DNDEBUG -D_WINDOWS -D_MBCS -MD -D_AFXDLL -DWIN32 -DWIN -D_X86_ -Dtry=cktry -Dexcept=__except -Dleave=__leave -Dfinally=__finally -D_CRT_SECURE_NO_DEPRECATE -DCRTAPI1=_cdecl -DCRTAPI2=_cdecl -DMSC -DNONTTRACE -DWIN_NT -DREENTRANT -Fo"C:\CA GEN\Models\draft_1.ief\c\OBJC\QCONC.OBJ" "C:\CA GEN\Models\draft_1.ief\c\QCONC.C"
    cl : Command line warning D9035 : option 'Zc:forScope-' has been deprecated and will be removed in a future release
    QCONC.C
    ...Compiling QC - QC
    cl -c -EHsc -Zc:forScope- -W3 -Od -nologo -DCGGUI -DNDEBUG -D_WINDOWS -D_MBCS -MD -D_AFXDLL -DWIN32 -DWIN -D_X86_ -Dtry=cktry -Dexcept=__except -Dleave=__leave -Dfinally=__finally -D_CRT_SECURE_NO_DEPRECATE -DCRTAPI1=_cdecl -DCRTAPI2=_cdecl -DMSC -DNONTTRACE -DWIN_NT -DREENTRANT -Fo"C:\CA GEN\Models\draft_1.ief\c\OBJC\QC.OBJ" "C:\CA GEN\Models\draft_1.ief\c\QC.C"
    cl : Command line warning D9035 : option 'Zc:forScope-' has been deprecated and will be removed in a future release
    QC.C
    C:\CA GEN\Models\draft_1.ief\c\QC.C(280): warning C4047: '=': 'PSTEPID' differs in levels of indirection from 'void *'
    ...Creating/Updating QC Structured Storage
    CD "C:\CA GEN\Models\draft_1.ief\c\."
    "C:\CA GEN\gen\\wrocfcw" "C:\CA GEN\Models\draft_1.ief\c\QC"
    line 160:1: unexpected token: END
    CD "C:\CA GEN\Models\draft_1.ief\c\."
    ...Compiling GUI resources
    rc -r -DWIN -DIEF_BITMAP=. -I"%IEF_BITMAP%" -I"C:\CA GEN\Models\draft_1.ief\c\." -I"C:\CA GEN\Models\draft_1.ief\c\." -I"C:\CA GEN\gen\version" -I"C:\CA GEN\gen\." -DCUSTOMER_APPL -fo"C:\CA GEN\Models\draft_1.ief\c\QC.RES" "C:\CA GEN\Models\draft_1.ief\c\QC.RC"
    Microsoft (R) Windows (R) Resource Compiler Version 10.0.10011.16384

    Copyright (C) Microsoft Corporation. All rights reserved.

     

    ---Compiles for QC.DLL Dependencies done
    ...Linking Load Module DLL QC
    link /NOLOGO /DLL /SUBSYSTEM:WINDOWS /entry:_DllMainCRTStartup@12 /OUT:"C:\CA GEN\Models\draft_1.ief\c\QC.DLL" /implib:"C:\CA GEN\Models\draft_1.ief\c\QC.LIB" /def:"C:\CA GEN\Models\draft_1.ief\c\QC.DEF" /OUT:"C:\CA GEN\Models\draft_1.ief\c\QC.DLL" @"C:\CA GEN\Models\draft_1.ief\c\QC.RSP" @"C:\CA GEN\Models\draft_1.ief\c\QC.LNK"
    LINK : fatal error LNK1181: cannot open input file 'C:\Program.obj'
    NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\link.EXE"' : return code '0x49d'
    Stop.
    ****************************
    Link step for QC.DLL using C:\CA GEN\Models\draft_1.ief\c\QC.LNK failed with errors.
    ****************************
    IEFSIGNAL:FAIL
    *** Build for Load Module QC Failed. ***
    Important! Review above for any errors.

    -------------------------------------------------------------------------------------------------

     

    But it still getting the same error



  • 5.  Re: LINK: fatal error LNK1181

    Broadcom Employee
    Posted Apr 17, 2018 04:59 PM

    Marco,

     

      All of the token values that contain spaces, your LOC.EXTERNAL_LIB for instance, as well as others, needs to be enclosed in double quotes.

     

     Cheers,

    Andy



  • 6.  Re: LINK: fatal error LNK1181

    Posted Apr 20, 2018 10:53 AM

    Hello Andy,

     

       Sorry to take so long to back to you.

     

       I got what you said and tried using double quotes but I got other errors about the lib that was using. To be honest with you I don`t know why exaclty the LOC.EXTERNAL_LIB was filled with that content  (believe it is used as default).

     

       I did try some tests using/not using double quotes... using single quotes... and... what I had success was removing the LOC.EXTERNAL_LIB at all !!

     

       Once again, thanks for your help !!!

     

    Best Regards,

    Marco Bomfim