470,609 Members | 1,827 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,609 developers. It's quick & easy.

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 4882
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

//free up resources
delete c;
return 0;
Sep 3 '07 #3

Post your reply

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

Similar topics

2 posts views Thread by danip | last post: by
reply views Thread by Grey Alien | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.