Need help, insane problem with SDL

Started by
1 comment, last by narutoxela 11 years, 3 months ago

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

Please use [ code ][ /code ] tags (without spaces) when posting code.

As for your errors... I'm not sure, but I found this and this when googling 'SAL_acquire': identifier not found, however, everything I've found is for the v7.0a WDK, not 8.0 like you're using...

[size=2][ I was ninja'd 71 times before I stopped counting a long time ago ] [ f.k.a. MikeTacular ] [ My Blog ] [ SWFer: Gaplessly looped MP3s in your Flash games ]

Thank you so much!! I've been looking for hours for a fix! The second link worked. Thanks!!!!!!!!

Alex

This topic is closed to new replies.

Advertisement