Linker Error: Undefined symbol _closegraph in module GRAPHEX.cpp

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • nicholas.fodor@gmail.com

    Linker Error: Undefined symbol _closegraph in module GRAPHEX.cpp

    I get the above message 9 times when I'm trying to run my graphics
    code. I get it for:

    _closegraph
    _outtextxy
    _drawpoly
    _sector
    _line
    _ellipse
    _rectange
    _circle
    _initgraph

    I do have the graphics.h properly included, and directed too and the .h
    is in it's proper location. Any ideas?

  • Default User

    #2
    Re: Linker Error: Undefined symbol _closegraph in module GRAPHEX.cpp

    nicholas.fodor@ gmail.com wrote:
    [color=blue]
    > I get the above message 9 times when I'm trying to run my graphics
    > code. I get it for:[/color]
    [color=blue]
    > I do have the graphics.h properly included, and directed too and the
    > .h is in it's proper location. Any ideas?[/color]

    Header files don't provide implementation (usually). You are missing
    one or more libraries that need to be included in your build. The
    specific libraries and how they are included are off-topic here.



    Brian

    --
    Please quote enough of the previous message for context. To do so from
    Google, click "show options" and use the Reply shown in the expanded
    header.

    Comment

    • nicholas.fodor@gmail.com

      #3
      Re: Linker Error: Undefined symbol _closegraph in module GRAPHEX.cpp

      I have my graphics.lib and my Egavga.bgi both properly directed to in
      C:\TC\LIB and C:\TC\BGI respectively. Stil the same error messages.
      Have tried both on my Windows 95 laptop and WIndows XP pc. No help.

      Comment

      • Victor Bazarov

        #4
        Re: Linker Error: Undefined symbol _closegraph in module GRAPHEX.cpp

        nicholas.fodor@ gmail.com wrote:[color=blue]
        > I get the above message 9 times when I'm trying to run my graphics
        > code. I get it for:
        >
        > _closegraph
        > _outtextxy
        > _drawpoly
        > _sector
        > _line
        > _ellipse
        > _rectange
        > _circle
        > _initgraph
        >
        > I do have the graphics.h properly included, and directed too and the .h
        > is in it's proper location. Any ideas?[/color]

        Have you tried adding the library where all those functions are to the
        linker command line? No, I don't know how to do that, and neither does
        anyone else here. Please ask in the newsgroup dedicated to your compiler.

        V
        --
        Please remove capital As from my address when replying by mail

        Comment

        • Default User

          #5
          Re: Linker Error: Undefined symbol _closegraph in module GRAPHEX.cpp

          nicholas.fodor@ gmail.com wrote:
          [color=blue]
          > I have my graphics.lib and my Egavga.bgi both properly directed to in
          > C:\TC\LIB and C:\TC\BGI respectively. Stil the same error messages.
          > Have tried both on my Windows 95 laptop and WIndows XP pc. No help.[/color]

          Did you miss the part about it being off-topic here? You need a
          newsgroup dedicated to your platform, looks like something in the
          Borland hierarchy. Also read the info in my .sig below.



          Brian

          --
          Please quote enough of the previous message for context. To do so from
          Google, click "show options" and use the Reply shown in the expanded
          header.

          Comment

          • murugesandins
            New Member
            • Jun 2006
            • 4

            #6
            Go to
            Options
            =>Linker
            =>Libraries

            This will display a box showing
            [ ] Container Class
            [ ] Turbo Version
            [ ] Graphics Library
            [ ] Standard Run Time

            Press Alt G
            Press Alt K
            Then do the compilation.
            That time it will work

            Comment

            Working...