473,327 Members | 1,930 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,327 software developers and data experts.

linker error unable to open file classes in turboC 7 by akki

1
Expand|Select|Wrap|Line Numbers
  1. #include <graphics.h>
  2. #include <stdio.h>
  3. #include <conio.h>
  4. #include <math.h>
  5.  
  6. void main()
  7. {
  8.  
  9.     int gd = DETECT, gm = DETECT, s, dx, dy, m, x1, y1, x2, y2;
  10.     float xi, yi, x, y;
  11.  
  12.     clrscr();
  13.  
  14.     printf("Enter the sarting point x1 & y1\n");
  15.     scanf("%d%d", &x1, &y1);
  16.  
  17.     printf("Enter the end point x2 & y2\n");
  18.     scanf("%d%d", &x2, &y2);
  19.  
  20.     initgraph(&gd, &gm, "");
  21.     cleardevice();
  22.  
  23.     dx = x2 - x1;
  24.     dy = y2 - y1;
  25.  
  26.     if (abs(dx) > abs(dy))
  27.     s = abs(dx);
  28.     else
  29.     s = abs(dy);
  30.  
  31.     xi = dx / (float) s;
  32.     yi = dy / (float) s;
  33.  
  34.     x = x1;
  35.     y = y1;
  36.  
  37.     putpixel(x1, y1, 4);
  38.  
  39.     for (m = 0; m < s; m++) {
  40.     x += xi;
  41.     y += yi;
  42.     putpixel(x, y, 4);
  43.     }
  44.     getch();
  45. }
Apr 5 '14 #1
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?
Apr 7 '14 #2

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

Similar topics

5
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...
0
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...
0
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...
15
by: Amjad Ali | last post by:
What is "linker error : Unable to open the file ' TCLASSS.LIB' " ? How can I correct it?
7
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 { ...
3
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...
4
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
2
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";
1
by: aaal | last post by:
I can't find this file.How to deal with this problem?
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
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...
1
isladogs
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...
0
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...
0
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...
0
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...
1
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)...
0
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
0
isladogs
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...

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.