Mesa and Watcom.

Mesa and Watcom.

Post by Gunnar Tunkran » Sun, 03 May 1998 04:00:00



Does anyone know how to compile openGL-programs with Watcom (mesa) ?
(I'm just starting to explore openGL )
I keep getting these errors like:

Error! E2028: glGenLists_ is an undefined reference
Error! E2028: glNewList_ is an undefined reference
Error! E2028: glBegin_ is an undefined reference
... and so on.
I think there's something wrong with the linking with opengl32.lib.

/Johan

 
 
 

Mesa and Watcom.

Post by Mann » Sun, 03 May 1998 04:00:00


Hard to address a linking problem without seeing the link command.
The easiest way to add libraries in watcom is to use a #pragma library
to autoinclude 'em:

// libraries
#ifdef __WATCOMC__
  #pragma library("opengl32.lib");
  #pragma library("glu32.lib");
#endif

Hmm, those are in '*_' form rather than '_*' form
That's probably the problem right there.  It's trying to link against
register calling convention, when the libraries are cdecl.  Peeking at
the Mesa 2.6 header, it seems to cover this case only for dll's in
win32.  Are you compiling for DOS?  I never tried it in DOS, so I
can't be sure.

A sloppy hack might be to edit the gl.h file:

#define APIENTRY __cdecl
#define CALLBACK __cdecl

Hope that is somewhat helpfulish

--Manny

On Sat, 02 May 1998 01:48:32 +0200, Gunnar Tunkrans


>Does anyone know how to compile openGL-programs with Watcom (mesa) ?
>(I'm just starting to explore openGL )
>I keep getting these errors like:

>Error! E2028: glGenLists_ is an undefined reference
>Error! E2028: glNewList_ is an undefined reference
>Error! E2028: glBegin_ is an undefined reference
>... and so on.
>I think there's something wrong with the linking with opengl32.lib.

>/Johan


 
 
 

1. Need help compiling MESA with Watcom C/C++ 11.0b

Hello!

Due to suggestions I got from another post, I downloaded MESA,
in order to use it as a debug substitute for the original hardware
accelerated OpenGL32.DLL.
Unfortunately, using Watcom C/C++ Ver 11.0b, I am not able
to install/make any of the files.
This is the output I get:

D:\Download\Mesa-3.2.1\WIN32>nmake /f nmake.mak opengl32

Watcom C/C++ NMAKE Clone for 386  Version 11.0
Copyright by Sybase, Inc., and its subsidiaries, 1995, 1997.
All rights reserved.  Watcom is a trademark of Sybase, Inc.

nmake.mak(1): Error(E09): Ignoring out of place Single-colon
nmake.mif(343): Error(E59): !IF Parse Error
Error(E02): Make execution terminated

I am not very experienced with makefiles, and therefore unable
to fix whatever is wrong. As far as I can see,
there should be no problem in the nmake.mif file, line 434.

Thanks a lot for your help!

Best,
Carsten

--
Carsten Fuchs    http://home.t-online.de/home/CarstenFuchs
Ca3D - Engine    http://home.t-online.de/home/CarstenFuchs/engine.html

2. 'Warning - le version' ???? among other things.

3. How build Mesa-2.6 with 3Dfx for Watcom c/c++ 11

4. CorelDraw8 script - some questions

5. New: Watcom newsgroup!

6. Question: How to transparent gif background?

7. 32bit VBE2.0 & WATCOM

8. Simulating light beams

9. 800x600x256 VESA bug in Millennium (using watcom 10.6)

10. Help: Wacom tablet driver crashes Watcom debugger

11. Compiling IJG's JPEG software using Watcom for DOS

12. Watcom refuses to fix floodfill() -- nonsensical!

13. Watcom Penpartner