Menu

Linking problem using winbgi.lib

2003-02-01
2012-09-26
  • Nobody/Anonymous

    When attempting to run a program using winbgi.lib, I get the following errors in the linker:

    C:/linuxstuff/elec3660/winbgi.lib(winbgi.obj)(.text+0x2c):winbgi.cpp: undefined reference to `??2@YAPAXI@Z'
    C:/linuxstuff/elec3660/winbgi.lib(winbgi.obj)(.text+0x57):winbgi.cpp: undefined reference to `??3@YAXPAX@Z'

    (The program runs at Uni using MS Visual C++ 6.0, using this same library)

    I expect that I have made a daft mistake somewhere!

    Thanks in advance,
    Richard Thompson

     
    • Nobody/Anonymous

      um... no... where did you get the winbgi.lib that you are using?

      Zero Valintine

       
    • Anonymous

      Anonymous - 2003-02-02

      The problem is "the same library". The object file format for GCC is different from MSVC++. You need the library for GCC (winbgim.a).

      The simplest approach is to use the clgdi DevPack (download via vUpdate). This installs the library and provides a project template to get you started.

      Clifford.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.