Reg: VC++ Project Properties

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mickey22
    New Member
    • Feb 2007
    • 105

    Reg: VC++ Project Properties

    Hi,

    I am getting some errors in building my project

    I tried to build a C++ file say abc.cpp and I have put the all the directories to include necessary library files and header files..But I get an error as :

    Fatal error LNK1104 : CANNOT OPEN INPUT FILE .\Debug\abc.obj

    I tried to look in the help of Microsfoft Visual Studio but nothing did not work out.
    and I have searched for abc.obj in all the directories..It does not exist at all.

    Can anyone please help me how to solve it.Are there any other libraries I need to include or any properties of the project I need to change..Thanks.

    --------------------------------------------------------------------------------
  • DeMan
    Top Contributor
    • Nov 2006
    • 1799

    #2
    It's looking for a file that (as you say after searching everywhere) isn't available. Try searching for similar problems on google....

    (I'm not sure how relevant this is to your exact project but) Here's one I prepared earlier....

    Comment

    • mickey22
      New Member
      • Feb 2007
      • 105

      #3
      Reg: VC++ Project Properties

      Hi,

      I have aproblem in setting of a project in vc++.If I choose the option in Project>Propert ies>C/C++/preprocessor>Ge nerate preprocessed file>choose option as with line numbers, this setting eliminates all the errors but gives me the error LNK1104 as this option supresses compilation and I observed that it elimintes .obj file and instead creates .i file...If I dont set this option I get many errors like C++ does not support default int and lot of errors whcih are already defined header files...

      How can I solve this please??What are the options I can try to reduce these errors..Thanks

      Comment

      • sicarie
        Recognized Expert Specialist
        • Nov 2006
        • 4677

        #4
        Originally posted by mickey22
        Hi,

        I have aproblem in setting of a project in vc++.If I choose the option in Project>Propert ies>C/C++/preprocessor>Ge nerate preprocessed file>choose option as with line numbers, this setting eliminates all the errors but gives me the error LNK1104 as this option supresses compilation and I observed that it elimintes .obj file and instead creates .i file...If I dont set this option I get many errors like C++ does not support default int and lot of errors whcih are already defined header files...

        How can I solve this please??What are the options I can try to reduce these errors..Thanks
        Mickey22-

        Please do not double-post. After a day or so, if you think your thread has been forgotten, you can reply to it, which will bump it back up to the top.

        Also, DeMan has been kind enough to respond to your original problem, and you did not tell him the result, or try to continue that thread.

        Comment

        • mickey22
          New Member
          • Feb 2007
          • 105

          #5
          Hi Deman,

          I am sorry abt that...Actually I was not able to find even in google of solving the LNK 1104..But I have found that if I include in my Project properties in c\c++>preperoce ssor>generate preprocessed file>with line numbers option, that eliminates .obj files..So I thought that might be the reason..

          But if I do not include that property I get lot of errros..I would like to know if you can help me in this regard..

          I am posting the same thing just to apologise..Than k you

          Comment

          • sicarie
            Recognized Expert Specialist
            • Nov 2006
            • 4677

            #6
            Mickey22-

            Sorry if that came off as harsh - we're just trying to keep the forum in order.

            Comment

            Working...