Results 1 to 2 of 2

Thread: Visual Studio 2008 help

  1. #1
    Junior Member Newbie
    Join Date
    Sep 2009
    Posts
    1

    Visual Studio 2008 help

    I am trying to get some random numbers on my open gl program but as soon as i #include <cstdlib> i get these errors. I am using visual studio 2008 so i am not sure what the issue is. P.S. if you know another way to get random numbers that works to.


    Error 1 error C2144: syntax error : 'void' should be preceded by ';' c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1152 project1compgraphics
    Error 2 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1152 project1compgraphics
    Error 3 error C2146: syntax error : missing ';' before identifier 'glAccum' c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1152 project1compgraphics
    Error 4 error C2182: 'APIENTRY' : illegal use of type 'void' c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1152 project1compgraphics
    Error 5 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1152 project1compgraphics
    Error 6 error C2144: syntax error : 'void' should be preceded by ';' c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1153 project1compgraphics
    Error 7 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1153 project1compgraphics
    Error 8 error C2086: 'int WINGDIAPI' : redefinition c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1153 project1compgraphics
    Error 9 error C2146: syntax error : missing ';' before identifier 'glAlphaFunc' c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1153 project1compgraphics
    Error 10 error C2182: 'APIENTRY' : illegal use of type 'void' c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1153 project1compgraphics
    Error 11 error C2086: 'int APIENTRY' : redefinition c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1153 project1compgraphics
    Error 12 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1153 project1compgraphics
    Error 13 error C2146: syntax error : missing ';' before identifier 'GLboolean' c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1154 project1compgraphics
    Error 14 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1154 project1compgraphics
    Error 15 error C2086: 'int WINGDIAPI' : redefinition c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1154 project1compgraphics
    Error 16 error C2146: syntax error : missing ';' before identifier 'glAreTexturesResident' c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1154 project1compgraphics
    Error 17 error C2371: 'APIENTRY' : redefinition; different basic types c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1154 project1compgraphics
    Error 18 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1154 project1compgraphics
    Error 19 error C2144: syntax error : 'void' should be preceded by ';' c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1155 project1compgraphics
    Error 20 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1155 project1compgraphics
    Error 21 error C2086: 'int WINGDIAPI' : redefinition c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1155 project1compgraphics
    Error 22 error C2146: syntax error : missing ';' before identifier 'glArrayElement' c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1155 project1compgraphics
    Error 23 error C2182: 'APIENTRY' : illegal use of type 'void' c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1155 project1compgraphics
    Error 24 error C2086: 'int APIENTRY' : redefinition c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1155 project1compgraphics
    Error 25 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1155 project1compgraphics
    Error 26 error C2144: syntax error : 'void' should be preceded by ';' c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1156 project1compgraphics
    Error 27 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1156 project1compgraphics
    Error 28 error C2086: 'int WINGDIAPI' : redefinition c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1156 project1compgraphics
    Error 29 error C2146: syntax error : missing ';' before identifier 'glBegin' c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1156 project1compgraphics
    Error 30 error C2182: 'APIENTRY' : illegal use of type 'void' c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1156 project1compgraphics
    Error 31 error C2086: 'int APIENTRY' : redefinition c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1156 project1compgraphics
    Error 32 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1156 project1compgraphics
    Error 33 error C2144: syntax error : 'void' should be preceded by ';' c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1157 project1compgraphics
    Error 34 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1157 project1compgraphics
    Error 35 error C2086: 'int WINGDIAPI' : redefinition c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1157 project1compgraphics
    Error 36 error C2146: syntax error : missing ';' before identifier 'glBindTexture' c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1157 project1compgraphics
    Error 37 error C2182: 'APIENTRY' : illegal use of type 'void' c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1157 project1compgraphics
    Error 38 error C2086: 'int APIENTRY' : redefinition c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1157 project1compgraphics
    Error 39 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1157 project1compgraphics
    Error 40 error C2144: syntax error : 'void' should be preceded by ';' c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1158 project1compgraphics
    Error 41 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1158 project1compgraphics
    Error 42 error C2086: 'int WINGDIAPI' : redefinition c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1158 project1compgraphics
    Error 43 error C2146: syntax error : missing ';' before identifier 'glBitmap' c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1158 project1compgraphics
    Error 44 error C2182: 'APIENTRY' : illegal use of type 'void' c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1158 project1compgraphics
    Error 45 error C2086: 'int APIENTRY' : redefinition c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1158 project1compgraphics
    Error 46 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1158 project1compgraphics
    Error 47 error C2144: syntax error : 'void' should be preceded by ';' c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1159 project1compgraphics
    Error 48 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1159 project1compgraphics
    Error 49 error C2086: 'int WINGDIAPI' : redefinition c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1159 project1compgraphics
    Error 50 error C2146: syntax error : missing ';' before identifier 'glBlendFunc' c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1159 project1compgraphics
    Error 51 error C2182: 'APIENTRY' : illegal use of type 'void' c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1159 project1compgraphics
    Error 52 error C2086: 'int APIENTRY' : redefinition c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1159 project1compgraphics
    Error 53 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1159 project1compgraphics
    Error 54 error C2144: syntax error : 'void' should be preceded by ';' c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1160 project1compgraphics
    Error 55 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1160 project1compgraphics
    Error 56 error C2086: 'int WINGDIAPI' : redefinition c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1160 project1compgraphics
    Error 57 error C2146: syntax error : missing ';' before identifier 'glCallList' c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1160 project1compgraphics
    Error 58 error C2182: 'APIENTRY' : illegal use of type 'void' c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1160 project1compgraphics
    Error 59 error C2086: 'int APIENTRY' : redefinition c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1160 project1compgraphics
    Error 60 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1160 project1compgraphics
    Error 61 error C2144: syntax error : 'void' should be preceded by ';' c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1161 project1compgraphics
    Error 62 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1161 project1compgraphics
    Error 63 error C2086: 'int WINGDIAPI' : redefinition c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1161 project1compgraphics
    Error 64 error C2146: syntax error : missing ';' before identifier 'glCallLists' c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1161 project1compgraphics
    Error 65 error C2182: 'APIENTRY' : illegal use of type 'void' c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1161 project1compgraphics
    Error 66 error C2086: 'int APIENTRY' : redefinition c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1161 project1compgraphics
    Error 67 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1161 project1compgraphics
    Error 68 error C2144: syntax error : 'void' should be preceded by ';' c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1162 project1compgraphics
    Error 69 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1162 project1compgraphics
    Error 70 error C2086: 'int WINGDIAPI' : redefinition c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1162 project1compgraphics
    Error 71 error C2146: syntax error : missing ';' before identifier 'glClear' c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1162 project1compgraphics
    Error 72 error C2182: 'APIENTRY' : illegal use of type 'void' c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1162 project1compgraphics
    Error 73 error C2086: 'int APIENTRY' : redefinition c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1162 project1compgraphics
    Error 74 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1162 project1compgraphics
    Error 75 error C2144: syntax error : 'void' should be preceded by ';' c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1163 project1compgraphics
    Error 76 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1163 project1compgraphics
    Error 77 error C2086: 'int WINGDIAPI' : redefinition c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1163 project1compgraphics
    Error 78 error C2146: syntax error : missing ';' before identifier 'glClearAccum' c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1163 project1compgraphics
    Error 79 error C2182: 'APIENTRY' : illegal use of type 'void' c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1163 project1compgraphics
    Error 80 error C2086: 'int APIENTRY' : redefinition c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1163 project1compgraphics
    Error 81 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1163 project1compgraphics
    Error 82 error C2144: syntax error : 'void' should be preceded by ';' c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1164 project1compgraphics
    Error 83 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1164 project1compgraphics
    Error 84 error C2086: 'int WINGDIAPI' : redefinition c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1164 project1compgraphics
    Error 85 error C2146: syntax error : missing ';' before identifier 'glClearColor' c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1164 project1compgraphics
    Error 86 error C2182: 'APIENTRY' : illegal use of type 'void' c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1164 project1compgraphics
    Error 87 error C2086: 'int APIENTRY' : redefinition c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1164 project1compgraphics
    Error 88 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1164 project1compgraphics
    Error 89 error C2144: syntax error : 'void' should be preceded by ';' c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1165 project1compgraphics
    Error 90 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1165 project1compgraphics
    Error 91 error C2086: 'int WINGDIAPI' : redefinition c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1165 project1compgraphics
    Error 92 error C2146: syntax error : missing ';' before identifier 'glClearDepth' c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1165 project1compgraphics
    Error 93 error C2182: 'APIENTRY' : illegal use of type 'void' c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1165 project1compgraphics
    Error 94 error C2086: 'int APIENTRY' : redefinition c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1165 project1compgraphics
    Error 95 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1165 project1compgraphics
    Error 96 error C2144: syntax error : 'void' should be preceded by ';' c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1166 project1compgraphics
    Error 97 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1166 project1compgraphics
    Error 98 error C2086: 'int WINGDIAPI' : redefinition c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1166 project1compgraphics
    Error 99 error C2146: syntax error : missing ';' before identifier 'glClearIndex' c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1166 project1compgraphics
    Error 100 error C2182: 'APIENTRY' : illegal use of type 'void' c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1166 project1compgraphics
    Error 101 error C2086: 'int APIENTRY' : redefinition c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1166 project1compgraphics
    Error 102 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1166 project1compgraphics
    Error 103 error C2144: syntax error : 'void' should be preceded by ';' c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1167 project1compgraphics
    Error 104 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1167 project1compgraphics
    Error 105 error C2086: 'int WINGDIAPI' : redefinition c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1167 project1compgraphics
    Error 106 error C2146: syntax error : missing ';' before identifier 'glClearStencil' c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1167 project1compgraphics
    Error 107 error C2182: 'APIENTRY' : illegal use of type 'void' c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1167 project1compgraphics
    Error 108 error C2086: 'int APIENTRY' : redefinition c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1167 project1compgraphics
    Error 109 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1167 project1compgraphics
    Error 110 error C2144: syntax error : 'void' should be preceded by ';' c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1168 project1compgraphics
    Error 111 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1168 project1compgraphics
    Error 112 error C2086: 'int WINGDIAPI' : redefinition c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1168 project1compgraphics
    Error 113 error C2146: syntax error : missing ';' before identifier 'glClipPlane' c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1168 project1compgraphics
    Error 114 error C2182: 'APIENTRY' : illegal use of type 'void' c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1168 project1compgraphics
    Error 115 error C2086: 'int APIENTRY' : redefinition c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1168 project1compgraphics
    Error 116 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1168 project1compgraphics
    Error 117 error C2144: syntax error : 'void' should be preceded by ';' c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1169 project1compgraphics
    Error 118 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1169 project1compgraphics
    Error 119 error C2086: 'int WINGDIAPI' : redefinition c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1169 project1compgraphics
    Error 120 error C2146: syntax error : missing ';' before identifier 'glColor3b' c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1169 project1compgraphics
    Error 121 error C2182: 'APIENTRY' : illegal use of type 'void' c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1169 project1compgraphics
    Error 122 error C2086: 'int APIENTRY' : redefinition c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1169 project1compgraphics
    Error 123 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1169 project1compgraphics
    Error 124 error C2144: syntax error : 'void' should be preceded by ';' c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1170 project1compgraphics
    Error 125 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1170 project1compgraphics
    Error 126 error C2086: 'int WINGDIAPI' : redefinition c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1170 project1compgraphics
    Error 127 error C2146: syntax error : missing ';' before identifier 'glColor3bv' c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1170 project1compgraphics
    Error 128 error C2182: 'APIENTRY' : illegal use of type 'void' c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1170 project1compgraphics
    Error 129 error C2086: 'int APIENTRY' : redefinition c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1170 project1compgraphics
    Error 130 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1170 project1compgraphics
    Error 131 error C2144: syntax error : 'void' should be preceded by ';' c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1171 project1compgraphics
    Error 132 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1171 project1compgraphics
    Error 133 error C2086: 'int WINGDIAPI' : redefinition c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1171 project1compgraphics
    Error 134 error C2146: syntax error : missing ';' before identifier 'glColor3d' c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1171 project1compgraphics
    Error 135 error C2182: 'APIENTRY' : illegal use of type 'void' c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1171 project1compgraphics
    Error 136 error C2086: 'int APIENTRY' : redefinition c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1171 project1compgraphics
    Error 137 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1171 project1compgraphics
    Error 138 error C2144: syntax error : 'void' should be preceded by ';' c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1172 project1compgraphics
    Error 139 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1172 project1compgraphics
    Error 140 error C2086: 'int WINGDIAPI' : redefinition c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1172 project1compgraphics
    Error 141 error C2146: syntax error : missing ';' before identifier 'glColor3dv' c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1172 project1compgraphics
    Error 142 error C2182: 'APIENTRY' : illegal use of type 'void' c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1172 project1compgraphics
    Error 143 fatal error C1003: error count exceeds 100; stopping compilation c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h 1172 project1compgraphics



    Anyone have any ideas???


  2. #2
    Senior Member Regular Contributor
    Join Date
    Aug 2009
    Posts
    126

    Re: Visual Studio 2008 help

    does it work if you use
    Code :
    #include <stdlib.h>

    Do you use
    Code :
    using namescpace std

    I think "cstdlib" is for c, not for c++ ...


    ^^


Similar Threads

  1. openCL using visual studio 2008..
    By phoebe0105 in forum OpenCL
    Replies: 0
    Last Post: 04-19-2010, 10:50 AM
  2. Replies: 2
    Last Post: 03-19-2010, 10:55 AM
  3. Using GLUT with visual studio 2008
    By zabes in forum OpenGL: General
    Replies: 8
    Last Post: 02-08-2010, 02:17 PM
  4. open GL and visual studio 2008
    By patelk7 in forum OpenGL: Windows
    Replies: 5
    Last Post: 02-26-2009, 01:40 PM
  5. Redbook Samples + Visual Studio 2008
    By draww in forum OpenGL: User Software
    Replies: 1
    Last Post: 12-08-2008, 04:04 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean