Click to See Complete Forum and Search --> : Building problems...


Leo77
March 1st, 2005, 01:03 PM
Hi all

I was creating an program that uses this libraries:


#include "RenderTexture.h" //it uses GL/glew.h
#include <stdlib.h>
#include <stdio.h>
#include <GL/glut.h>
#include <GL/glh_genext.h> // from Nvidia
#include <math.h>
#include "ImageSetView.h"


And I got several warnings followed by 3 errors. I really dont know what's wrong. can anyone help me?
Using VC++ 6.0 and the files are up to date


--------------------Configuration: VDTM - Win32 Debug--------------------
Compiling...
ImageSetView.cpp
c:\program files\nvidia corporation\sdk\inc\gl\glh_genext.h(57) : warning C4273: '__glewBlendColor' : inconsistent dll linkage. dllexport assumed.
c:\program files\nvidia corporation\sdk\inc\gl\glh_genext.h(58) : warning C4273: '__glewBlendEquation' : inconsistent dll linkage. dllexport assumed.
c:\program files\nvidia corporation\sdk\inc\gl\glh_genext.h(59) : warning C4273: '__glewDrawRangeElements' : inconsistent dll linkage. dllexport assumed.
c:\program files\nvidia corporation\sdk\inc\gl\glh_genext.h(60) : warning C4273: '__glewColorTable' : inconsistent dll linkage. dllexport assumed.
c:\program files\nvidia corporation\sdk\inc\gl\glh_genext.h(61) : warning C4273: '__glewColorTableParameterfv' : inconsistent dll linkage. dllexport assumed.
c:\program files\nvidia corporation\sdk\inc\gl\glh_genext.h(62) : warning C4273: '__glewColorTableParameteriv' : inconsistent dll linkage. dllexport assumed.
..................
.......... and many others just like that...
.................
c:\program files\nvidia corporation\sdk\inc\gl\glh_genext.h(279) : error C2146: syntax error : missing ';' before identifier 'glLoadTransposeMatrixfARB'
c:\program files\nvidia corporation\sdk\inc\gl\glh_genext.h(279) : fatal error C1004: unexpected end of file found
Error executing cl.exe.
Creating browse info file...
BSCMAKE: error BK1506 : cannot open file '.\Debug\ImageSetView.sbr': No such file or directory
Error executing bscmake.exe.

VDTM.exe - 3 error(s), 165 warning(s)

Elementer
March 1st, 2005, 02:00 PM
Hi there,
if you're using something like nVidia SDK or other things you should read the reference file, help one or readme.txt one (if exists). I think you forget to link library files or you need the DLLs that aren't in your system folder or current-work one, or maybe you also put the header in wrong sequences (sometimes with nVidia, GL etc... headers can cause this problems).

Bye

Mick
March 1st, 2005, 02:23 PM
It is the header files. Looks as if you are picking up old headers somewhere. What version of the NVIDIA SDK do you have? Since the latest includes glh_gennext.h in inc/glh not inc/gl

Leo77
March 2nd, 2005, 08:19 AM
thanks guys, I found out what the problem is. I was using the <glew.h> inside the "RenderTexture.h", and its imcompatible with <glh_genext.h>. I'll have to choose one of them to use.

thanks :wave: