472,807 Members | 1,834 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

fatal error LNK1104: cannot open file 'C:\Users\admin\Documents\Visual.obj

I could not figure out the reason for this error.
Aug 15 '07 #1
2 5016
sicarie
4,677 Expert Mod 4TB
I could not figure out the reason for this error.
Did you try escaping the series? In C/C++ the backslash is considered an escape character that allows you to program in thing like tabs (\t), so your code is trying to read those in as that slash, and the next character. To get a backslash, try putting in two backslashes (\\) where you would normally have one.
Aug 15 '07 #2
I am not sure your answer could solve my problem. To make sure that we are on the same page I am posting the code that is causing the problem:

[HTML]#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 *labels[] = {"Mon", "Tue", "Wed", "Thu", "Fri"};

// Create a XYChart object of size 250 x 250 pixels
XYChart *c = new XYChart(250, 250);

// Set the plotarea at (30, 20) and of size 200 x 200 pixels
c->setPlotArea(30, 20, 200, 200);

// Add a bar chart layer using the given data
c->addBarLayer(DoubleArray(data, sizeof(data)/sizeof(data[0])));

// Set the labels on the x axis.

c->xAxis()->setLabels(StringArray(labels, sizeof(labels)/sizeof(labels[0])));

// output the chart
c->makeChart("simplebar.png");

//free up resources
delete c;
return 0;
}[/HTML]
Sep 3 '07 #3

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

Similar topics

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...
0
by: Grey Alien | last post by:
I am getting this link error although I am no longer linking to the library (as a result of refactoring). I have checked and double checked my link options and I am no longer including the .lib...
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..???
1
by: 2abstract12 | last post by:
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...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Sept 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
14
DJRhino1175
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: lllomh | last post by:
How does React native implement an English player?
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

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.