Hi !
with VC++ 7 i have this error :
fatal error LNK1561: entry point must be defined
and i don't know what to do. It works well with vc++ 6 but not with vc++ 7.
these are my header and my main function :
#include <stdio.h>
#include <iostream>
#include <stdlib.h>
#include <fstream>
#include <math.h>
#include <string.h>
#include <glew.h>
#include <glut.h>
#include <sdl.h>
//#include <gl.h>
//#include <glext.h>
#include <SDL_image.h>
using namespace std;
#pragma comment( lib,"sdl.lib")
#pragma comment( lib,"sdlmain.lib")
#pragma comment( lib, "SDL_image.lib")
#pragma comment( lib, "glew32.lib")
#pragma comment( lib, "glut32.lib")
int main(int argc, char *argv[])
{
myLoader= new loader3ds() ;
glutInit (&argc, argv) ;
glutInitDisplayMode (GLUT_DOUBLE | GLUT_RGBA | GLUT_DEPTH) ;
glutInitWindowSize (640, 640) ;
glutInitWindowPosition (250,250) ;
glutCreateWindow (argv [0]) ;
glewInit();
glEnable( GL_DEPTH_TEST );
glClearColor(0, 0, 1, 0);
myLoader->lighting() ;
myLoader->loadTextures() ;
glutReshapeFunc (reshape) ;
glutKeyboardFunc (keyboard) ;
glutDisplayFunc (display) ;
glutIdleFunc(display);
loadShader *myShaderLoader = new loadShader("vertexShader.vert", "fragmentShader.frag");
//loadShader *myShaderLoader = new loadShader("toon.vert", "toon.frag");
glutMainLoop () ;
return 0 ;
}