implicit declaration of function

Trying to build your own version of Vega Strike and having problems? Unix users, paste your config.log here (stderr output alone is not helpful).
Post Reply
Guest

implicit declaration of function

Post by Guest »

Hello again, hellcat :)

I got this message

Code: Select all

c++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src          -I../../src/boost  -DHAVE_AL=1   -I/usr/include/python2.2 -DHAVE_PYTHON=1  -DUSE_BOOST_128=1   -pipe -O3 -fexpensive-optimizations -fomit-frame-pointer -Wall -ffast-math   -pipe  -c gl_init.cpp
gl_init.cpp: In function `void init_opengl_extensions()':
gl_init.cpp:106: implicit declaration of function `int glXGetProcAddressARB(...)'
make[3]: *** [gl_init.o] Fehler 1
make[3]: Leaving directory `/usr/download/Software/vegastrike-0.4.1-installer/vegastrike/src/gldrv'
make[2]: *** [all-recursive] Fehler 1
make[2]: Leaving directory `/usr/download/Software/vegastrike-0.4.1-installer/vegastrike/src'
make[1]: *** [all-recursive] Fehler 1
make[1]: Leaving directory `/usr/download/Software/vegastrike-0.4.1-installer/vegastrike'
make: *** [all-recursive-am] Fehler 2
Installed libraries:

Code: Select all

glutg3-dev			3.7-14
xlibmesa-gl-dev		4.3.0-0
xlibmesa-glu-dev	4.3.0-0
chesh

Post by chesh »

This is what ya need to do. Edit vegastrike/gldrv/gl_init.cpp

Where it is defining and including libraries, etc. put this at the top:

#define glXGetProcAddress glXGetProcAddressARB

Once you've done this, save it and restart make

chesh
Guest

Post by Guest »

Ok, but its vegastrike/src/gldrv/gl_init.cpp
chesh

Post by chesh »

hehehe, whatever. If you had spent the time to do a search for glXGetProcAddressARB in these forums, you would have seen that this has been discussed numorous times before. Anyway, just some advice.

chesh
Post Reply