473,382 Members | 1,369 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

fatal error LNK1104: cannot open file 'C:\Program.obj'

Hi

I am trying to build a bluetooth application to send and recieve data using microsoft sample code. When i compile the code, there are no error but when i try to build one i am getting this strange link error.

I am using Visual 2008 on Vista. My file path is \Documents\Visual Studio 2008\a1\a1\Debug.

Additional dependencies --- $(WindowsSdkDir).


I did google the error and there are suggestions to put the path name in brackets. I am not sure how to do it but i believe that path name cannot be an issue since i am using the default settings of Visual 2008.

Following is the code I am using right now.

<Complete code snipped>

Thank you for your help.
Oct 17 '08 #1
1 9486
Banfa
9,065 Expert Mod 8TB
Please read our posting guidelines we do not allow posting of your entire code. Additionally in this particular case all that code just detracts from the problem which is not related to your code.

It is a linker error, it is failing to open some file that has been placed on the command link of the link command.

The file was probably in a sub-directory of Program Files. As you original investigation suggested because of the space c:\Program Files\<...> was being interpreted as C:\Program.obj, an object to include in the link.

You need to put " round the file path on the command line that is located in Program Files so that c:\Program Files\<...> is interpreted as "c:\Program Files\<...>"
Oct 17 '08 #2

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

Similar topics

1
by: Mike | last post by:
The error during build in VC++: LINK : fatal error LNK1104: cannot open file "/blah/blah/blah.lib" the issue: I've inherited this cource code from another company and the company had their dir....
2
by: danip | last post by:
Hi, I have a C# project that have a C++ .net DLL as a reference. Everything is working okay, except when I try to rebuild only the C++ DLL I receive the error: fatal error LNK1104: cannot open...
1
by: Durga | last post by:
HI, I am converting VC++ 6.0 to .NET 2003. But I am getting linker error. Error: MyApplication fatal error LNK1104: cannot open file 'libci.lib'. MyApplication has OpenSSL, MFC and win 32...
1
by: Hunter | last post by:
Hi all, I'm a C newbie in a desperate need of help. My background isn't programming but engineering, so my programming skills are somewhat limited (I am able to write simple single-threaded...
2
by: Hunter | last post by:
Hi all, I'm a C newbie in a desperate need of help. My background isn't programming but engineering, so my programming skills are somewhat limited (I am able to write simple single-threaded...
1
by: bhushan11 | last post by:
hello sir i am searching in your site but i dont get how to place question about visual c++. so i am post this vc++ question in .net , sorre about that i am working on visual c++ lang. but i...
3
by: curious2007 | last post by:
#include "chartdir.h" int main(int argc, char *argv) { // The data for the bar chart double data = {85, 156, 179.5, 211, 123}; // The labels for the bar chart const char...
5
by: ramrooney | last post by:
hi, i am trying to port my project from vc 6.0 to visual studio 2005 i getting the error fatal error LNK1104: cannot open file 'mfc42d.lib' can anyone tell me how to rectify this error..???
0
by: Apocalypse | last post by:
I have installed Visual Studio 2005 just now. When I compile and link a empty console application : #include "stdafx.h" int _tmain(int argc, _TCHAR* argv) { return 0; } There is an Link...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.