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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
um... no... where did you get the winbgi.lib that you are using?
Zero Valintine
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
um... no... where did you get the winbgi.lib that you are using?
Zero Valintine
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.