Jump to content


c0mputer-fr0d

Member Since 28 Jul 2012
Offline Last Active Apr 10 2013 04:24 AM
-----

Topics I've Started

can anyone explain these errors, please

02 April 2013 - 07:53 PM

C:/Libs/glew-1.9.0/src/visualinfo.c:92: multiple definition of `main'
obj\Debug\Libs\glew-1.9.0\src\glewinfo.o:C:/Libs/glew-1.9.0/src/glewinfo.c:9713: first defined here
obj\Debug\engine.o: In function `main':
C:/Users/Jack/Desktop/graphical/demographics/engine.c:17: multiple definition of `main'
obj\Debug\Libs\glew-1.9.0\src\glewinfo.o:C:/Libs/glew-1.9.0/src/glewinfo.c:9713: first defined here
obj\Debug\Libs\glew-1.9.0\src\glew.o: In function `glewInit_GL_VERSION_1_2':
C:/Libs/glew-1.9.0/src/glew.c:3075: undefined reference to `wglGetProcAddress@4'
C:/Libs/glew-1.9.0/src/glew.c:3076: undefined reference to `wglGetProcAddress@4'
C:/Libs/glew-1.9.0/src/glew.c:3077: undefined reference to `wglGetProcAddress@4'
C:/Libs/glew-1.9.0/src/glew.c:3078: undefined reference to `wglGetProcAddress@4'
obj\Debug\Libs\glew-1.9.0\src\glew.o: In function `glewInit_GL_VERSION_1_3':
C:/Libs/glew-1.9.0/src/glew.c:3095: undefined reference to `wglGetProcAddress@4'
obj\Debug\Libs\glew-1.9.0\src\glew.o:C:/Libs/glew-1.9.0/src/glew.c:3096: more undefined references to `wglGetProcAddress@4' follow
obj\Debug\Libs\glew-1.9.0\src\glew.o: In function `glewGetExtension@4':
C:/Libs/glew-1.9.0/src/glew.c:8872: undefined reference to `glGetString@4'
obj\Debug\Libs\glew-1.9.0\src\glew.o: In function `glewContextInit':
C:/Libs/glew-1.9.0/src/glew.c:8892: undefined reference to `glGetString@4'
C:/Libs/glew-1.9.0/src/glew.c:8931: undefined reference to `glGetString@4'
obj\Debug\Libs\glew-1.9.0\src\glew.o: In function `glewInit_WGL_3DL_stereo_control':
C:/Libs/glew-1.9.0/src/glew.c:10778: undefined reference to `wglGetProcAddress@4'
obj\Debug\Libs\glew-1.9.0\src\glew.o: In function `glewInit_WGL_AMD_gpu_association':
C:/Libs/glew-1.9.0/src/glew.c:10791: undefined reference to `wglGetProcAddress@4'
C:/Libs/glew-1.9.0/src/glew.c:10792: undefined reference to `wglGetProcAddress@4'
C:/Libs/glew-1.9.0/src/glew.c:10793: undefined reference to `wglGetProcAddress@4'
C:/Libs/glew-1.9.0/src/glew.c:10794: undefined reference to `wglGetProcAddress@4'
obj\Debug\Libs\glew-1.9.0\src\glew.o:C:/Libs/glew-1.9.0/src/glew.c:10795: more undefined references to `wglGetProcAddress@4' follow
obj\Debug\Libs\glew-1.9.0\src\glew.o: In function `wglewGetExtension@4':
C:/Libs/glew-1.9.0/src/glew.c:11341: undefined reference to `wglGetCurrentDC@0'
obj\Debug\Libs\glew-1.9.0\src\glew.o: In function `wglewContextInit@0':
C:/Libs/glew-1.9.0/src/glew.c:11354: undefined reference to `wglGetProcAddress@4'
C:/Libs/glew-1.9.0/src/glew.c:11355: undefined reference to `wglGetProcAddress@4'
C:/Libs/glew-1.9.0/src/glew.c:11363: undefined reference to `wglGetCurrentDC@0'
obj\Debug\Libs\glew-1.9.0\src\glewinfo.o:glewinfo.c:(.text+0x211): undefined reference to `_imp____GLEW_VERSION_1_1'
obj\Debug\Libs\glew-1.9.0\src\glewinfo.o:glewinfo.c:(.text+0x21b): undefined reference to `_imp____GLEW_VERSION_1_1'
obj\Debug\Libs\glew-1.9.0\src\glewinfo.o:glewinfo.c:(.text+0x225): undefined reference to `_imp____GLEW_VERSION_1_1'
obj\Debug\Libs\glew-1.9.0\src\glewinfo.o:glewinfo.c:(.text+0x24f): undefined reference to `_imp____GLEW_VERSION_1_2'
obj\Debug\Libs\glew-1.9.0\src\glewinfo.o:glewinfo.c:(.text+0x259): undefined reference to `_imp____GLEW_VERSION_1_2'
obj\Debug\Libs\glew-1.9.0\src\glewinfo.o:glewinfo.c:(.text+0x263): undefined reference to `_imp____GLEW_VERSION_1_2'
obj\Debug\Libs\glew-1.9.0\src\glewinfo.o:glewinfo.c:(.text+0x285): undefined reference to `_imp____glewCopyTexSubImage3D'
obj\Debug\Libs\glew-1.9.0\src\glewinfo.o:glewinfo.c:(.text+0x2a4): undefined reference to `_imp____glewDrawRangeElements'
obj\Debug\Libs\glew-1.9.0\src\glewinfo.o:glewinfo.c:(.text+0x2c3): undefined reference to `_imp____glewTexImage3D'
obj\Debug\Libs\glew-1.9.0\src\glewinfo.o:glewinfo.c:(.text+0x2e2): undefined reference to `_imp____glewTexSubImage3D'
obj\Debug\Libs\glew-1.9.0\src\glewinfo.o:glewinfo.c:(.text+0x309): undefined reference to `_imp____GLEW_VERSION_1_2_1'
obj\Debug\Libs\glew-1.9.0\src\glewinfo.o:glewinfo.c:(.text+0x313): undefined reference to `_imp____GLEW_VERSION_1_2_1'
obj\Debug\Libs\glew-1.9.0\src\glewinfo.o:glewinfo.c:(.text+0x31d): undefined reference to `_imp____GLEW_VERSION_1_2_1'
obj\Debug\Libs\glew-1.9.0\src\glewinfo.o:glewinfo.c:(.text+0x347): undefined reference to `_imp____GLEW_VERSION_1_3'
obj\Debug\Libs\glew-1.9.0\src\glewinfo.o:glewinfo.c:(.text+0x351): undefined reference to `_imp____GLEW_VERSION_1_3'
obj\Debug\Libs\glew-1.9.0\src\glewinfo.o:glewinfo.c:(.text+0x35b): undefined reference to `_imp____GLEW_VERSION_1_3'
obj\Debug\Libs\glew-1.9.0\src\glewinfo.o:glewinfo.c:(.text+0x37d): undefined reference to `_imp____glewActiveTexture'
obj\Debug\Libs\glew-1.9.0\src\glewinfo.o:glewinfo.c:(.text+0x39c): undefined reference to `_imp____glewClientActiveTexture'
obj\Debug\Libs\glew-1.9.0\src\glewinfo.o:glewinfo.c:(.text+0x3bb): undefined reference to `_imp____glewCompressedTexImage1D'
obj\Debug\Libs\glew-1.9.0\src\glewinfo.o:glewinfo.c:(.text+0x3da): undefined reference to `_imp____glewCompressedTexImage2D'
obj\Debug\Libs\glew-1.9.0\src\glewinfo.o:glewinfo.c:(.text+0x3f9): undefined reference to `_imp____glewCompressedTexImage3D'
obj\Debug\Libs\glew-1.9.0\src\glewinfo.o:glewinfo.c:(.text+0x418): undefined reference to `_imp____glewCompressedTexSubImage1D'
obj\Debug\Libs\glew-1.9.0\src\glewinfo.o:glewinfo.c:(.text+0x437): undefined reference to `_imp____glewCompressedTexSubImage2D'
obj\Debug\Libs\glew-1.9.0\src\glewinfo.o:glewinfo.c:(.text+0x456): undefined reference to `_imp____glewCompressedTexSubImage3D'
obj\Debug\Libs\glew-1.9.0\src\glewinfo.o:glewinfo.c:(.text+0x475): undefined reference to `_imp____glewGetCompressedTexImage'
obj\Debug\Libs\glew-1.9.0\src\glewinfo.o:glewinfo.c:(.text+0x494): undefined reference to `_imp____glewLoadTransposeMatrixd'
obj\Debug\Libs\glew-1.9.0\src\glewinfo.o:glewinfo.c:(.text+0x4b3): undefined reference to `_imp____glewLoadTransposeMatrixf'
Process terminated with status 1 (0 minutes, 20 seconds)


platform.h problem glfw + glew

02 April 2013 - 02:59 AM

fatal error: X11/Xlib.h: No such file or directory
I'm on windows with codeblocks and using mingw

I downloaded glfw the other day and linked it and everything. Trying to do hello triangle but the platform.h files that are in the glfw library are trying to include xlib files which are for the x window system on debian machines and what not. I was told glfw was cross platform. I don't mind going on my linux boot but I have all my shit on windows and have the project all setup and everything. please help.
It's also trying to include glx.h which doesn't even exist
using:
glfw 2.7.7
glew 1.9

source sdk maps + third party engine

30 March 2013 - 02:22 AM

can I make a map in source sdk export it as 3ds max file and then use it in my opengl program?

why too many opengl wrappers?

28 March 2013 - 03:50 AM

what's will all this glew,glut,glut+,sdl,gfsl,glee,glfw. are these just wrapper libraries or what? what's the reason for the redundancy. why can't I just use opengl api by itself? if I do ever get opengl going (codeblocks) probably won't at this rate, I want to build a map in 3ds max and then put it into my program and move the camera inside it. can I do this without an engine? How long does an engine take to make? am I too incompetent to build an engine?(probably) Help please!
can I make a cool looking map with a lot of effort and little 3d modelling experience or is it like drawing where you can't do it unless your bjorn with it. I'm a big thicko you might say but I do put a lot of effort into things so I wan't to know if I'm wasting my time here. sorry for the multitude of questions but I have a lot of them. thanks. I'm not as experienced as most of you guys and gals(politically correctness mandated by my government) but I think I can get this done. hopefully it's more straight forward than my last project with the steinberg sdk which is for vsts which are plugins for a daw which is a music creation software.

fstream debug assertion failed

21 January 2013 - 06:23 AM

This is in vc++ 2010 on windows 7
public: int Form1::ReadList(){
	    ifstream pile;
        int count = 0;
        char inputbuff[100] ={'\0'},*tok,*folder;
        String^ poo = textBox1->Text;
        char* fil = ConvertString(poo);
        progressBar1->Maximum = File_Quant(fil);
        pile.open(fil,ifstream::in);
        if(!pile.good()){
             MessageBox::Show("Please select a valid m3u and path", "Problem",
                 MessageBoxButtons::OK, MessageBoxIcon::Exclamation);
       		  pile.close();
                 exit(1);
        }

public: char* Form1::ConvertString(String^ cnv){
            int length = textBox1->Text->Length;
		    char *out = new char[length+1];
	  for(int i = 0;i < length;i++){
		 out[i] = (char) cnv[i];
         out[length] = '\0';
        }
      return out;
        }
public: int Form1::File_Quant(char* fileloc){
		  int numfiles = 0;
          char enbuf[2];
          ifstream read;
          read.open(fileloc,ifstream::in);
          read.getline(enbuf,1,'\n');
          while(!read.eof()){
   	  read.getline(enbuf,1,'\n');
             numfiles++;}
         read.close();
	    return numfiles;
        }

gives me,
debug assertion failed
expression: stream != NULL

and talks about fclose.c when I'm not even calling fclose and I'm checking wheather it opened successfully on the next line
which really confuses me because if I have a file that doesn't exist it doesn't give me this but when its a legitimate file I get it its quite a puzzle.
I really need help , please and thanks.