- #include <graphics.h>
-
#include <stdio.h>
-
#include <conio.h>
-
#include <math.h>
-
-
void main()
-
{
-
-
int gd = DETECT, gm = DETECT, s, dx, dy, m, x1, y1, x2, y2;
-
float xi, yi, x, y;
-
-
clrscr();
-
-
printf("Enter the sarting point x1 & y1\n");
-
scanf("%d%d", &x1, &y1);
-
-
printf("Enter the end point x2 & y2\n");
-
scanf("%d%d", &x2, &y2);
-
-
initgraph(&gd, &gm, "");
-
cleardevice();
-
-
dx = x2 - x1;
-
dy = y2 - y1;
-
-
if (abs(dx) > abs(dy))
-
s = abs(dx);
-
else
-
s = abs(dy);
-
-
xi = dx / (float) s;
-
yi = dy / (float) s;
-
-
x = x1;
-
y = y1;
-
-
putpixel(x1, y1, 4);
-
-
for (m = 0; m < s; m++) {
-
x += xi;
-
y += yi;
-
putpixel(x, y, 4);
-
}
-
getch();
-
}
1 1864
I assume that the question is why do you get that error message from your linker when you try to link that program.
1. Are you trying to link any other files at the same time as part of that project?
2. Are you sure that none of the header files you have included are dependent on Classes?
3. Is there a file named Classes in the Include sub-directory?
4. What are you using to control the compile/link process? Make, batch file?
5. Do you know whether the error message is referring to a Header file or a Lib file?
Sign in to post your reply or Sign up for a free account.
Similar topics
by: Pradnyesh Rane |
last post by:
Hi,
I am encountering the following linker error on VC7.
LINK : fatal error LNK1171: unable to load ole32.dll
This error is only encountered for the "Debug" configuration. The project...
|
by: bazzer |
last post by:
hey,
im trying to access a microsoft access database from an ASP.NET web
application in visual basic 2003.NET. i get the following error when i
try running it:
Server Error in...
|
by: Ehsan68 |
last post by:
Hello
my problem is "Linker Error: Undefined symbol _cga_driver_far in module
maze.c " then Go to
Options
=>Linker
=>Libraries
This will display a box showing
Container Class
Turbo...
|
by: Amjad Ali |
last post by:
What is "linker error : Unable to open the file ' TCLASSS.LIB' " ?
How can I correct it?
|
by: simritsaini1982 |
last post by:
hello..
Can anybody tell me how to remove the linker error as mentioned above..
i have created a simple program in C++ as given below
#include<iostream.h>
#include<conio.h>
class ABC
{
...
|
by: david tran |
last post by:
Hello,
I am recompling a project using Borland C++ Builder 6. The recompile process failed due to linker error. The message was:
" Fatal unable to open file ABCC.lib"
I removed all references of...
|
by: john miller |
last post by:
#include<stdio.h>
main()
{
int i;
for(i=1; i<=100; i++)
printf("%d\n", i);
}
for this program in turboc I get the error
|
by: nitin333 |
last post by:
#include<iostream.h>
#include<conio.h>
#include<INTRFCC1.h>
#include<PRO1MENU.h>
#include<FRTSCR.h>;
#include<CARD1MENU.h>
void main()
{
cout<<"HELLO";
|
by: aaal |
last post by:
I can't find this file.How to deal with this problem?
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
by: af34tf |
last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
| |