473,405 Members | 2,185 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,405 software developers and data experts.

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

[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]


This code gives me the following error:

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

I have checked this and I do not have a Visual.obj file in my Documents folder. This might be the cause of this problem. If so how can I get this file?
Sep 5 '07 #1
3 12280
weaknessforcats
9,208 Expert Mod 8TB
I assume this is a Win32 Console Application??
Sep 5 '07 #2
Ok, you are right. This code is supposed to draw charts so probably it is not a console application. How can I handle this? Thanks.
Sep 6 '07 #3
weaknessforcats
9,208 Expert Mod 8TB
You will need to write a Windows program using a Win32 project or use the .NET Framework.
Sep 7 '07 #4

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

Similar topics

2
by: Rob Manger | last post by:
Hi Guys, Urgent problem. Trying to compile my solution I get the following error: Linking... LINK: fatal error LNK1181: cannot open input file 'Release\icmpping.abj' Note, I havn't changed...
5
by: George | last post by:
I'm getting an internal compiler error from Visual C++ .NET 2003 when I'm using managed extensions. Here is the error. Generating Code... c:\development\icu\source\common\uhash.c(869) : fatal...
2
by: 999 | last post by:
I am running some code in c++ and giving me the following error --------------------Configuration: Project_C_Calculator - Win32 Debug-------------------- Compiling... proj_c_calc.c...
3
by: Jaime Stuardo | last post by:
Hi all... I have an ASP.NET 2.0 application. This application uses 2 components, named Informe.dll and Seguridad.dll, whose source codes are under the same solution as the ASP.NET application....
5
by: mickey22 | last post by:
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...
2
by: curious2007 | last post by:
I could not figure out the reason for this error.
8
by: giginjose | last post by:
LINK : fatal error LNK1181: cannot open input file 'obj\ARMV4I\debug\intxsc1.obj'. I am getting this error after building my OS design on Platformbuilder 5.0 Please help me to fix it up.
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...
12
by: Anna Smidt | last post by:
Hello again, I am trying to convert a VC6 project to VC9, and the linker tells me that it cannot open file 'LIBC.lib'. But I didn't find this lib referenced or added anywhere. I used the linker...
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: 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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.