🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.graphics.api.opengl
Article #49

Re: Mesa + 3DFX

#49
From: David Bucciarelli
Date: Tue, 01 Jun 1999 00:00
42 lines
2146 bytes
Paul Richards wrote:

> I built Mesa ok and all the examples work fine with the 3DFX card.  I
> tried to build one of the examples myself to see if I could do it.  I
> make a project in MS VC++ 6 and added to it the files mesa\3dfx\demos\
> fire.c and image.c.  I also linked in these libraries: kernel32.lib
> user32.lib gdi32.lib opengl32.lib glu32.lib glut32.lib glide2x.lib
> winmm.lib.
> 
> They compile ok (with one or two warnings mind) but I get several linker
> errors:
> Linking...
> fire.obj : error LNK2001: unresolved external symbol _glutMainLoop
[...]
> I have copied the include/lib files into the VC ones for both Mesa and
> the Glide2x SDK.  I'm using Win95.

I guess your using the wrong 'calling convetion'. You should change the
setting  to 'stdcall' in the 'Project settings-> C/C++ -> Code
generation -> Calling convetion'. This should fix your problem.

It is a "bug" in the gl.h (the function prototypes are wrong) included
in the Mesa. The latest sources available at Mesa CVS should not include
this bug.

BTW, the easiest way to use Mesa under Win is to link with the standard
Microsoft Opengl32.lib and to copy the Mesa DLLs in the directory where
you run your application (so it is also very easy to switch between Mesa
and system OpenGL, you have only to delete or copy the Mesa DLLs).

David

-- 

David Bucciarelli
humanware@tin.it

Humanware S.r.l.
Via delle Belle Torri 18, Pisa, Italy
Tel: +39-050-570633
Fax: +39-050-973270
WWW: http://www-hmw.caribel.pisa.it
Technical Details
Message-ID: <37539E02.2475434B@tin.it>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <fYtVlAA7wZU3EwX8@dunvegan1.demon.co.uk>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f65bb,43be08220709ec81
X-Google-Attributes: gidf65bb,public
X-Google-Thread: 100291,43be08220709ec81
X-Google-Attributes: gid100291,public
From: David Bucciarelli <humanware@tin.it>
Subject: Re: Mesa + 3DFX
Date: 1999/06/01
Message-ID: <37539E02.2475434B@tin.it>
X-Deja-AN: 484393870
Content-Transfer-Encoding: 7bit
References: <fYtVlAA7wZU3EwX8@dunvegan1.demon.co.uk>
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
Organization: Humanware S.r.l.
Mime-Version: 1.0
Newsgroups: comp.graphics.api.opengl,3dfx.opengl