[gameprogrammer] Re: GL 2.0 on Xorg w/ ATI's proprietary drivers

On Fri, 2006-05-12 at 11:26 +0200, Latimerius wrote:
> On Thu, May 11, 2006 at 02:03:02PM -0500, Bob Pendleton wrote:
> 
> > On Wed, 2006-05-10 at 23:29 +0200, Latimerius wrote:
> > > 
> > > test.cpp: In function `int main()':
> > > test.cpp:7: error: `glCreateProgram' undeclared (first use this function)
> > > test.cpp:7: error: (Each undeclared identifier is reported only once for 
> > >    each function it appears in.)
> > 
> > Aren't those compiler errors, not link errors? It looks like the symbol
> > is not defined in gl.h or glext.h. I would go to /usr/include/GL and
> > grep to see if glCreateProgram is defined anywhere. If it isn't then I
> > would assume that I had an old version of the .h files and try to find
> > new ones. If glxinfo says you have 2.0 then you have 2.0. 
> 
> I apologize, these *are* compiler, not linker errors.  I pasted into my
> message wrong output (from a previous compilation when test.cpp didn't
> have all the required headers included) and failed to notice before I
> sent it.
> 
> Anyway, my mistake notwithstanding, there finally *are* link errors -
> I'm sorry for the confusion.

No problem :-) If the APIs aren't in the .h files then it does not
surprise me that they also cause link errors. But, I believe you said
you checked the .dlls and the entry points are there? So, the problem is
why isn't is linking even if the headers are wrong? You are compiling in
c++ and calling a c function. Last time I looked C++ does some flavor of
name mangling to put type information into the name. Is it possible that
the entry points in the .dll are *not* mangled, that is they are the
usual form for C entry points and your C++ compiler is generating
mangled names like it would for any other C++ function call? 

                Bob Pendleton

> 
>       latimerius
> 
> 
> 
> ---------------------
> To unsubscribe go to http://gameprogrammer.com/mailinglist.html
> 
> 
> 
-- 
+--------------------------------------+
+ Bob Pendleton: writer and programmer +
+ email: Bob@xxxxxxxxxxxxx             +
+ web: www.GameProgrammer.com          +
+ www.Wise2Food.com                    +
+ nutrient info on 7,000+ common foods +
+--------------------------------------+



---------------------
To unsubscribe go to http://gameprogrammer.com/mailinglist.html


Other related posts: