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

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

P: 71
I could not figure out the reason for this error.
Aug 15 '07 #1
Share this Question
Share on Google+
2 Replies


sicarie
Expert Mod 2.5K+
P: 4,677
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

P: 71
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

Post your reply

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