Jump to content
  • Advertisement

narutoxela

Member
  • Content count

    2
  • Joined

  • Last visited

Community Reputation

105 Neutral

About narutoxela

  • Rank
    Newbie
  1. narutoxela

    Need help, insane problem with SDL

    Thank you so much!! I've been looking for hours for a fix! The second link worked. Thanks!!!!!!!!   Alex
  2.   Hi everyone, i'm using visual studio 2012 and SDL 1.2.15 to make a game but when i put "#include "SDL_opengl.h"" I get these errors. Can anyone help with this?     1>------ Build started: Project: SOULAR_TESTING, Configuration: Debug Win32 ------ 1> main.cpp 1>c:\program files (x86)\windows kits\8.0\include\shared\driverspecs.h(350): error C2065: '__In_impl_' : undeclared identifier 1>c:\program files (x86)\windows kits\8.0\include\shared\driverspecs.h(350): error C2144: syntax error : 'char' should be preceded by ')' 1>c:\program files (x86)\windows kits\8.0\include\shared\driverspecs.h(350): error C3861: 'SAL_acquire': identifier not found 1>c:\program files (x86)\windows kits\8.0\include\shared\driverspecs.h(350): error C2059: syntax error : ')' 1>c:\program files (x86)\windows kits\8.0\include\shared\driverspecs.h(360): error C2065: '__In_impl_' : undeclared identifier 1>c:\program files (x86)\windows kits\8.0\include\shared\driverspecs.h(360): error C2144: syntax error : 'char' should be preceded by ')' 1>c:\program files (x86)\windows kits\8.0\include\shared\driverspecs.h(360): error C3861: 'SAL_release': identifier not found 1>c:\program files (x86)\windows kits\8.0\include\shared\driverspecs.h(360): error C2059: syntax error : ')' 1>c:\program files (x86)\windows kits\8.0\include\shared\driverspecs.h(370): error C2065: '__In_impl_' : undeclared identifier 1>c:\program files (x86)\windows kits\8.0\include\shared\driverspecs.h(370): error C2144: syntax error : 'char' should be preceded by ')' 1>c:\program files (x86)\windows kits\8.0\include\shared\driverspecs.h(370): error C3861: 'SAL_acquireGlobal': identifier not found 1>c:\program files (x86)\windows kits\8.0\include\shared\driverspecs.h(370): error C2059: syntax error : ')' 1>c:\program files (x86)\windows kits\8.0\include\shared\driverspecs.h(379): error C2065: '__In_impl_' : undeclared identifier 1>c:\program files (x86)\windows kits\8.0\include\shared\driverspecs.h(379): error C2144: syntax error : 'char' should be preceded by ')' 1>c:\program files (x86)\windows kits\8.0\include\shared\driverspecs.h(379): error C3861: 'SAL_releaseGlobal': identifier not found 1>c:\program files (x86)\windows kits\8.0\include\shared\driverspecs.h(379): error C2059: syntax error : ')' 1>c:\program files (x86)\windows kits\8.0\include\shared\driverspecs.h(388): error C2065: '__In_impl_' : undeclared identifier 1>c:\program files (x86)\windows kits\8.0\include\shared\driverspecs.h(388): error C2144: syntax error : 'char' should be preceded by ')' 1>c:\program files (x86)\windows kits\8.0\include\shared\driverspecs.h(388): error C3861: 'SAL_mustHold': identifier not found 1>c:\program files (x86)\windows kits\8.0\include\shared\driverspecs.h(388): error C2059: syntax error : ')' 1>c:\program files (x86)\windows kits\8.0\include\shared\driverspecs.h(400): error C2065: '__In_impl_' : undeclared identifier 1>c:\program files (x86)\windows kits\8.0\include\shared\driverspecs.h(400): error C2144: syntax error : 'char' should be preceded by ')' 1>c:\program files (x86)\windows kits\8.0\include\shared\driverspecs.h(400): error C3861: 'SAL_mustHoldGlobal': identifier not found 1>c:\program files (x86)\windows kits\8.0\include\shared\driverspecs.h(400): error C2059: syntax error : ')' 1>c:\program files (x86)\windows kits\8.0\include\shared\driverspecs.h(409): error C2065: '__In_impl_' : undeclared identifier 1>c:\program files (x86)\windows kits\8.0\include\shared\driverspecs.h(409): error C2144: syntax error : 'char' should be preceded by ')' 1>c:\program files (x86)\windows kits\8.0\include\shared\driverspecs.h(409): error C3861: 'SAL_neverHold': identifier not found 1>c:\program files (x86)\windows kits\8.0\include\shared\driverspecs.h(409): error C2059: syntax error : ')' 1>c:\program files (x86)\windows kits\8.0\include\shared\driverspecs.h(420): error C2065: '__In_impl_' : undeclared identifier 1>c:\program files (x86)\windows kits\8.0\include\shared\driverspecs.h(420): error C2144: syntax error : 'char' should be preceded by ')' 1>c:\program files (x86)\windows kits\8.0\include\shared\driverspecs.h(420): error C3861: 'SAL_neverHoldGlobal': identifier not found 1>c:\program files (x86)\windows kits\8.0\include\shared\driverspecs.h(420): error C2059: syntax error : ')' 1>c:\program files (x86)\windows kits\8.0\include\shared\driverspecs.h(427): error C2061: syntax error : identifier '_Holds_resource_' 1>c:\program files (x86)\windows kits\8.0\include\shared\driverspecs.h(427): error C2143: syntax error : missing ')' before ';' 1>c:\program files (x86)\windows kits\8.0\include\shared\driverspecs.h(427): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>c:\program files (x86)\windows kits\8.0\include\shared\driverspecs.h(427): error C2059: syntax error : ')' 1>c:\program files (x86)\windows kits\8.0\include\shared\driverspecs.h(428): error C2061: syntax error : identifier '_Holds_resource_global_' 1>c:\program files (x86)\windows kits\8.0\include\shared\driverspecs.h(428): error C2143: syntax error : missing ')' before ';' 1>c:\program files (x86)\windows kits\8.0\include\shared\driverspecs.h(428): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>c:\program files (x86)\windows kits\8.0\include\shared\driverspecs.h(428): error C2059: syntax error : ')' 1>c:\program files (x86)\windows kits\8.0\include\shared\driverspecs.h(551): error C2144: syntax error : '__SAL_YesNo' should be preceded by ')' 1>c:\program files (x86)\windows kits\8.0\include\shared\driverspecs.h(551): error C3861: 'SAL_clearDoInit': identifier not found 1>c:\program files (x86)\windows kits\8.0\include\shared\driverspecs.h(551): error C2059: syntax error : ')' 1>c:\program files (x86)\windows kits\8.0\include\shared\driverspecs.h(557): error C2144: syntax error : 'void' should be preceded by ')' 1>c:\program files (x86)\windows kits\8.0\include\shared\driverspecs.h(557): error C3861: 'SAL_IoGetDmaAdapter': identifier not found 1>c:\program files (x86)\windows kits\8.0\include\shared\driverspecs.h(557): error C2059: syntax error : ')' 1>c:\program files (x86)\windows kits\8.0\include\shared\driverspecs.h(575): error C2065: '__In_impl_' : undeclared identifier 1>c:\program files (x86)\windows kits\8.0\include\shared\driverspecs.h(575): error C2146: syntax error : missing ')' before identifier '__AuToQuOtE' 1>c:\program files (x86)\windows kits\8.0\include\shared\driverspecs.h(575): error C3861: 'SAL_return': identifier not found 1>c:\program files (x86)\windows kits\8.0\include\shared\driverspecs.h(575): error C2059: syntax error : ')' 1>c:\program files (x86)\windows kits\8.0\include\shared\driverspecs.h(601): error C2144: syntax error : '__int64' should be preceded by ')' 1>c:\program files (x86)\windows kits\8.0\include\shared\driverspecs.h(601): error C3861: 'SAL_strictTypeMatch': identifier not found 1>c:\program files (x86)\windows kits\8.0\include\shared\driverspecs.h(601): error C2059: syntax error : ')' 1>c:\program files (x86)\windows kits\8.0\include\shared\driverspecs.h(609): error C2065: '__In_impl_' : undeclared identifier 1>c:\program files (x86)\windows kits\8.0\include\shared\driverspecs.h(609): error C2146: syntax error : missing ')' before identifier '__AuToQuOtE' 1>c:\program files (x86)\windows kits\8.0\include\shared\driverspecs.h(609): error C3861: 'SAL_strictType': identifier not found 1>c:\program files (x86)\windows kits\8.0\include\shared\driverspecs.h(609): error C2059: syntax error : ')' 1>c:\program files (x86)\windows kits\8.0\include\shared\driverspecs.h(639): error C2144: syntax error : 'void' should be preceded by ')' 1>c:\program files (x86)\windows kits\8.0\include\shared\driverspecs.h(639): error C3861: 'SAL_IsAliased': identifier not found 1>c:\program files (x86)\windows kits\8.0\include\shared\driverspecs.h(639): error C2059: syntax error : ')' 1>c:\program files (x86)\windows kits\8.0\include\shared\driverspecs.h(646): error C2144: syntax error : '__SAL_YesNo' should be preceded by ')' 1>c:\program files (x86)\windows kits\8.0\include\shared\driverspecs.h(646): error C3861: 'SAL_NeedsRelease': identifier not found 1>c:\program files (x86)\windows kits\8.0\include\shared\driverspecs.h(646): error C2059: syntax error : ')' 1>c:\program files (x86)\windows kits\8.0\include\shared\driverspecs.h(661): error C2065: '__In_impl_' : undeclared identifier 1>c:\program files (x86)\windows kits\8.0\include\shared\driverspecs.h(661): error C2146: syntax error : missing ')' before identifier '__AuToQuOtE' 1>c:\program files (x86)\windows kits\8.0\include\shared\driverspecs.h(661): error C3861: 'SAL_preferredFunction': identifier not found 1>c:\program files (x86)\windows kits\8.0\include\shared\driverspecs.h(662): error C2059: syntax error : ')' 1>c:\program files (x86)\windows kits\8.0\include\shared\driverspecs.h(663): error C2065: '__In_impl_' : undeclared identifier 1>c:\program files (x86)\windows kits\8.0\include\shared\driverspecs.h(663): error C2146: syntax error : missing ')' before identifier '__AuToQuOtE' 1>c:\program files (x86)\windows kits\8.0\include\shared\driverspecs.h(663): error C3861: 'SAL_preferredFunction3': identifier not found 1>c:\program files (x86)\windows kits\8.0\include\shared\driverspecs.h(664): error C2059: syntax error : ')' 1>c:\program files (x86)\windows kits\8.0\include\shared\driverspecs.h(671): error C2065: '__In_impl_' : undeclared identifier 1>c:\program files (x86)\windows kits\8.0\include\shared\driverspecs.h(671): error C2146: syntax error : missing ')' before identifier '__AuToQuOtE' 1>c:\program files (x86)\windows kits\8.0\include\shared\driverspecs.h(671): error C3861: 'SAL_error': identifier not found 1>c:\program files (x86)\windows kits\8.0\include\shared\driverspecs.h(671): error C2059: syntax error : ')' 1>c:\program files (x86)\windows kits\8.0\include\shared\driverspecs.h(672): error C2065: '__In_impl_' : undeclared identifier 1>c:\program files (x86)\windows kits\8.0\include\shared\driverspecs.h(672): error C2146: syntax error : missing ')' before identifier '__AuToQuOtE' 1>c:\program files (x86)\windows kits\8.0\include\shared\driverspecs.h(672): error C3861: 'SAL_error2': identifier not found 1>c:\program files (x86)\windows kits\8.0\include\shared\driverspecs.h(672): error C2059: syntax error : ')' 1>c:\program files (x86)\windows kits\8.0\include\shared\driverspecs.h(687): error C2144: syntax error : 'void' should be preceded by ')' 1>c:\program files (x86)\windows kits\8.0\include\shared\driverspecs.h(687): error C3861: 'SAL_floatSaved': identifier not found 1>c:\program files (x86)\windows kits\8.0\include\shared\driverspecs.h(687): error C2059: syntax error : ')' 1>c:\program files (x86)\windows kits\8.0\include\shared\driverspecs.h(693): error C2144: syntax error : 'void' should be preceded by ')' 1>c:\program files (x86)\windows kits\8.0\include\shared\driverspecs.h(693): error C3861: 'SAL_floatRestored': identifier not found 1>c:\program files (x86)\windows kits\8.0\include\shared\driverspecs.h(693): error C2059: syntax error : ')' 1>c:\program files (x86)\windows kits\8.0\include\shared\driverspecs.h(700): error C2144: syntax error : 'void' should be preceded by ')' 1>c:\program files (x86)\windows kits\8.0\include\shared\driverspecs.h(700): error C3861: 'SAL_floatUsed': identifier not found 1>c:\program files (x86)\windows kits\8.0\include\shared\driverspecs.h(700): error C2059: syntax error : ')' 1>c:\program files (x86)\windows kits\8.0\include\shared\driverspecs.h(724): error C2065: '__In_impl_' : undeclared identifier 1>c:\program files (x86)\windows kits\8.0\include\shared\driverspecs.h(724): error C2144: syntax error : 'char' should be preceded by ')' 1>c:\program files (x86)\windows kits\8.0\include\shared\driverspecs.h(724): error C3861: 'SAL_IsFormatString': identifier not found 1>c:\program files (x86)\windows kits\8.0\include\shared\driverspecs.h(724): error C2059: syntax error : ')' 1>c:\program files (x86)\windows kits\8.0\include\shared\driverspecs.h(743): error C2065: '__In_impl_' : undeclared identifier 1>c:\program files (x86)\windows kits\8.0\include\shared\driverspecs.h(743): error C2146: syntax error : missing ')' before identifier '__AuToQuOtE' 1>c:\program files (x86)\windows kits\8.0\include\shared\driverspecs.h(743): error C3861: 'SAL_completionType': identifier not found 1>c:\program files (x86)\windows kits\8.0\include\shared\driverspecs.h(743): error C2059: syntax error : ')' 1>c:\program files (x86)\windows kits\8.0\include\shared\driverspecs.h(748): error C2065: '__In_impl_' : undeclared identifier 1>c:\program files (x86)\windows kits\8.0\include\shared\driverspecs.h(748): error C2146: syntax error : missing ')' before identifier '__AuToQuOtE' 1>c:\program files (x86)\windows kits\8.0\include\shared\driverspecs.h(748): error C3861: 'SAL_callbackType': identifier not found 1>c:\program files (x86)\windows kits\8.0\include\shared\driverspecs.h(748): error C2059: syntax error : ')' 1>c:\program files (x86)\windows kits\8.0\include\shared\driverspecs.h(856): error C2061: syntax error : identifier '_Is_kernel_' 1>c:\program files (x86)\windows kits\8.0\include\shared\driverspecs.h(856): error C2143: syntax error : missing ')' before ';' 1>c:\program files (x86)\windows kits\8.0\include\shared\driverspecs.h(856): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>c:\program files (x86)\windows kits\8.0\include\shared\driverspecs.h(856): error C2059: syntax error : ')' 1>c:\program files (x86)\windows kits\8.0\include\shared\driverspecs.h(856): fatal error C1003: error count exceeds 100; stopping compilation ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========   Here's my code if you want to see it       #include <SDL.h> #include <SDL_opengl.h> using namespace std; bool gameInit(); int main( int argc, char *args[] ){ if(!gameInit()){ printf("Failed to init!!"); return 1; } system("PAUSE");//MUST BE CHANGED WHEN PORTING TO ANOTHER OS SDL_Quit(); return 0; } bool gameInit(){ SDL_Surface *screen; if(SDL_Init(SDL_INIT_EVERYTHING) < 0){ return false; } screen = SDL_SetVideoMode(640, 480, 32, SDL_OPENGL); if(screen == NULL){ return false; } if( !initGL()){ return false; } SDL_WM_SetCaption("SOULAR_TEST", NULL); return true; }     EDIT: Thanks for the code tip!
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!