By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,750 Members | 1,221 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,750 IT Pros & Developers. It's quick & easy.

Reg: VC++ Project Properties

100+
P: 105
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.

--------------------------------------------------------------------------------
Feb 23 '07 #1
Share this Question
Share on Google+
5 Replies


DeMan
100+
P: 1,806
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....

http://vcfaq.mvps.org/lang/10.htm
Feb 23 '07 #2

100+
P: 105
Hi,

I have aproblem in setting of a project in vc++.If I choose the option in Project>Properties>C/C++/preprocessor>Generate 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
Feb 23 '07 #3

sicarie
Expert Mod 2.5K+
P: 4,677
Hi,

I have aproblem in setting of a project in vc++.If I choose the option in Project>Properties>C/C++/preprocessor>Generate 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.
Feb 23 '07 #4

100+
P: 105
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++>preperocessor>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..Thank you
Feb 23 '07 #5

sicarie
Expert Mod 2.5K+
P: 4,677
Mickey22-

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

Post your reply

Sign in to post your reply or Sign up for a free account.