none
error LNK1104: cannot open file '.obj'

    Question

  • Hello,

    I am starting developing my project.

    1- I link additional header folders in Configuration Properties-> C/C++-> Additional Include Directories.

    2- I link additional libraries folder in Configuration Properties-> Linker -> General-> Additional Library Directories.

    3- I put all .lib files (separated by space) in Configuration Properties-> Linker -> Input-> Additional Dependencies.

    When I build my project, I got this error: error LNK1104: cannot open file '.obj'

    I am using vs2013, Debug mode, windows7.

    I am stuck. Any help please?

    Tuesday, February 09, 2016 2:06 PM

Answers

  • Hi AllaaArfaj,

    >>3- I put all .lib files (separated by space) in Configuration Properties-> Linker -> Input-> Additional Dependencies.

    I create a default Win32 project and based on your description I try to add additional libraries and so on. When I do the step 3, I find there are some default .lib files which are separated by semicolons as below image shows.

    And in the Additional Dependencies window, they are listed with line by lin. Please add your lib files with line by line to check whether this issue still exist.


    Best Regards,
    Weiwei

    Friday, February 12, 2016 2:37 AM
    Moderator

All replies

  • Hi AlssArfaj,

    Thank you posting in MSDN.

    Do you mean that you got this error without using TFS build?

    If you get this error without using TFS, I will help you move this case to Visual Studio Forum for dedicated help.

    Thank you for your understanding.

    Best regards,


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Wednesday, February 10, 2016 2:51 AM
  • Hi AllaaArfaj,

    >>3- I put all .lib files (separated by space) in Configuration Properties-> Linker -> Input-> Additional Dependencies.

    I create a default Win32 project and based on your description I try to add additional libraries and so on. When I do the step 3, I find there are some default .lib files which are separated by semicolons as below image shows.

    And in the Additional Dependencies window, they are listed with line by lin. Please add your lib files with line by line to check whether this issue still exist.


    Best Regards,
    Weiwei

    Friday, February 12, 2016 2:37 AM
    Moderator