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

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • onie
    New Member
    • Apr 2014
    • 1

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

    Code:
    #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();
    }
    Last edited by Rabbit; Apr 6 '14, 04:48 AM. Reason: Please use [code] and [/code] tags when posting code or formatted data.
  • Honduras2811
    New Member
    • Apr 2014
    • 21

    #2
    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?

    Comment

    Working...