fatal error LNK1181: cannot open input file ",.obj"

I compiled my program after doing all those settings in "Project Setting Menu"
but i got an error :

fatal error LNK1181: cannot open input file ",.obj"

I think there is some problem in the settings. I checked all the settings tht i know but still not able to remove this error.

If anyone know about the settings in VC++ then plz reply
any help will be of great use
Thanks in advance



Answer this question

fatal error LNK1181: cannot open input file ",.obj"

  • excelthoughts

    thanks for your answer

    i have a module named AssemblyInfo, but my programm don't generate AssemblyInfo.obj .

    I don't know what to change in linker settings will you help me please!



  • Tollens

    Look into the build log, what is the command line for the build process.

  • JEP8979

    hello

    i'am a new member; please will tell me if you have already found a solution for this problem , because i have the same problem, please it's very urgent for me :

    the message is:

    Linking...

    LINK : fatal error LNK1181: cannot open input file '.\Debug\AssemblyInfo.obj'

    thanks a lot



  • AgentM

    As Martin suggested, try creating project from scratch and see if the issue still reproduces.

    Thanks,
    Ayman Shoukry
    VC++ Team


  • dave_cw3w

    it's C++, with a dll main. a added sources that i had in visual studio C++ , and now i want to have them in visual studio .Net

    did you think that i should change liker settings



  • S_B

    What did you entered in you linker settings.

  • David Olix - MSFT

    What kind of project is this Managed C++/CLI

    What did you added to the project, what source files you have



  • Bjornar

    Please create a new thread.

    Check your linker settings as I wrot ein this thread. Do you have an module named AssemblyInfo



  • gafferuk

    Sorry! I have no idea.

    I even can not see that there is a part like this in the command line.

    Try to create a new project from scratch.



  • FloridaAviator

    hello

    i'am a new member; please will tell me if you have already found a solution for this problem , because i have the same problem, please it's very urgent for me :

    the message is:

    Linking...

    LINK : fatal error LNK1181: cannot open input file '.\Debug\AssemblyInfo.obj'

    thanks a lot



  • Martin Bonner

    I tried following two:

    First time i tried this one :

    "E:\MSDev98\MyProjects\DCMConverter\png\Debug\png.lib" ; "E:\MSDev98\MyProjects\DCMConverter\jpeg\Debug\jpeg.lib" ; "E:\MSDev98\MyProjects\DCMConverter\zlib\Debug\zlib.lib" ; "E:\MSDev98\MyProjects\DCMConverter\tiff\Debug\tiff.lib" ; "E:\MSDev98\MyProjects\DCMConverter\cximage\Debug\cximage.lib"

    and second time i tried this one:

    E:\MSDev98\MyProjects\DCMConverter\png\Debug\png.lib ; E:\MSDev98\MyProjects\DCMConverter\jpeg\Debug\jpeg.lib ; E:\MSDev98\MyProjects\DCMConverter\zlib\Debug\zlib.lib ; E:\MSDev98\MyProjects\DCMConverter\tiff\Debug\tiff.lib ; E:\MSDev98\MyProjects\DCMConverter\cximage\Debug\cximage.lib

    In both cases i m getting the same error msg

    Linking...
    LINK : fatal error LNK1104: cannot open file ";.obj"
    Error executing link.exe.


  • Thiago willian

    Check you linker settings. Did you placed a comma into one of those fields Separate entries with a semicolon.

  • John MG

    I checked my linker settings.. Earlier i was using comma to seperate entries sso in was getting error with ",.obj" input file

    Now, i replaced comma with semi-colon and now i am getting same error with ";.obj" file..

    Plz help me out...


  • Lubo P.

    I am sending you the command line of build log

    I am new to VC++ so, Its difficult for me to find error in this log.

    Build Log

    --------------------Configuration: DCMConverter - Win32 Debug--------------------

    Command Lines

    Creating temporary file "C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\RSP10B.tmp" with contents [ E:\MSDev98\MyProjects\DCMConverter\png\Debug\png.lib ; E:\MSDev98\MyProjects\DCMConverter\jpeg\Debug\jpeg.lib ; E:\MSDev98\MyProjects\DCMConverter\zlib\Debug\zlib.lib ; E:\MSDev98\MyProjects\DCMConverter\tiff\Debug\tiff.lib ; E:\MSDev98\MyProjects\DCMConverter\cximage\Debug\cximage.lib /nologo /subsystem:windows /incremental:yes /pdb:"Debug/DCMConverter.pdb" /debug /machine:I386 /nodefaultlib:"msvcprtd.lib" /nodefaultlib:"msvcrtd.lib" /nodefaultlib:"msvcrt.lib" /out:"Release/DCMConverter.exe" /pdbtype:sept /libpath:"D:\cximage599c_full\CxImage\CxImageDLL\Debug" /libpath:"D:\dcmtk\dcmtk-3.5.3\Debug" /libpath:"D:\dcmtk\config\include" /libpath:"D:\dcmtk\dcmjpeg\include" /libpath:"D:\dcmtk\ofstd\include" /libpath:"D:\dcmtk\dcmdata\include" /libpath:"D:\dcmtk\dcmimgle\include" /libpath:"D:\dcmtk\dcmimage\include" /libpath:"D:\dcmtk\dcmjpeg\libijg8" /libpath:"D:\dcmtk\dcmjpeg\libijg12" /libpath:"D:\dcmtk\dcmjpeg\libijg16" /libpath:"D:\dcmtk\zlib-1.2.1" /libpath:"D:\dcmtk\tiff-v3.6.1\libtiff" /libpath:"D:\dcmtk\libpng-1.2.5" .\Debug\DCMConverter.obj .\Debug\DCMConverterDlg.obj .\Debug\StdAfx.obj .\Debug\xImageDCM.obj .\Debug\DCMConverter.res ] Creating command line "link.exe @C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\RSP10B.tmp"

    Output Window

    Linking... LINK : fatal error LNK1104: cannot open file ";.obj" Error executing link.exe.

    Results

    DCMConverter.exe - 1 error(s), 0 warning(s)

  • fatal error LNK1181: cannot open input file ",.obj"