Compiler Error C2275
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you visual studio c99 support might have Meta Discuss the workings and policies of this
Visual Studio 2012 C99
site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers
Missing Before Type
or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community
Error C2143: Syntax Error : Missing ';' Before 'type'
of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up error C2275 : illegal use of this type as an expression up vote 44 down vote favorite 7 Since yesterday, I've been facing a compiling error for my C project. The project itself consists on c2275 fuji xerox creating a service that will make some tasks. I don't what has changed since yesterday, but this morning, my code can't compile anymore. Here are the errors I have : c:\path\main.c(56): error C2275: 'SERVICE_TABLE_ENTRY' : illegal use of this type as an expression c:\program files\microsoft sdks\windows\v7.0a\include\winsvc.h(773) : see declaration of 'SERVICE_TABLE_ENTRY' c:\path\main.c(56): error C2146: syntax error : missing ';' before identifier 'DispatchTable' c:\path\main.c(56): error C2065: 'DispatchTable' : undeclared identifier c:\path\main.c(56): error C2059: syntax error : ']' c:\path\main.c(57): error C2065: 'DispatchTable' : undeclared identifier c:\path\main.c(57): warning C4047: 'function' : 'const SERVICE_TABLE_ENTRYA *' differs in levels of indirection from 'int' c:\path\main.c(57): warning C4024: 'StartServiceCtrlDispatcherA' : different types for formal and actual parameter 1 Here's the code concerned by these errors (from lines 45 to 58) : int main(int ac, char *av[]) { if (ac > 1) { if (!parse_args(ac, av)) { aff_error(ARGUMENTS); return EXIT_FAILURE; } } SERVICE_TABLE_ENTRY DispatchTable[] = {{MY_SERVICE_NAME, ServiceMain}, {NULL, NULL}}; StartServiceCtrlDispatcher(DispatchTable); return EXIT_SUCCESS; } And here's the co
resources Windows Server 2012 resources Programs MSDN subscriptions Overview Benefits Administrators Students Microsoft Imagine Microsoft Student Partners ISV Startups TechRewards Events Community Magazine Forums Blogs Channel 9 Documentation APIs and xerox c2275 reference Dev centers Retired content Samples We’re sorry. The content you requested c89 has been removed. You’ll be auto redirected in 1 second. Visual C++ Programmer's Guide Build Errors Compiler Errors C2200 through C2299 Compiler Errors C2200 through C2299 Compiler Error C2275 Compiler Error C2275 Compiler Error C2275 Compiler Error C2200 Compiler Error C2201 Compiler Error C2202 Compiler Error C2203 Compiler Error http://stackoverflow.com/questions/9903582/error-c2275-illegal-use-of-this-type-as-an-expression C2204 Compiler Error C2205 Compiler Error C2206 Compiler Error C2207 Compiler Error C2208 Compiler Error C2212 Compiler Error C2213 Compiler Error C2217 Compiler Error C2218 Compiler Error C2219 Compiler Error C2220 Compiler Error C2221 Compiler Error C2222 Compiler Error C2223 Compiler Error C2224 Compiler Error C2226 Compiler Error C2227 Compiler Error C2228 Compiler Error C2229 Compiler Error C2230 Compiler Error C2231 https://msdn.microsoft.com/en-us/library/aa262638(v=vs.60).aspx Compiler Error C2232 Compiler Error C2233 Compiler Error C2234 Compiler Error C2235 Compiler Error C2236 Compiler Error C2238 Compiler Error C2239 Compiler Error C2240 Compiler Error C2241 Compiler Error C2242 Compiler Error C2243 Compiler Error C2244 Compiler Error C2245 Compiler Error C2246 Compiler Error C2247 Compiler Error C2248 Compiler Error C2249 Compiler Error C2250 Compiler Error C2251 Compiler Error C2252 Compiler Error C2253 Compiler Error C2254 Compiler Error C2255 Compiler Error C2256 Compiler Error C2258 Compiler Error C2259 Compiler Error C2260 Compiler Error C2261 Compiler Error C2262 Compiler Error C2264 Compiler Error C2265 Compiler Error C2266 Compiler Error C2267 Compiler Error C2268 Compiler Error C2270 Compiler Error C2271 Compiler Error C2272 Compiler Error C2273 Compiler Error C2274 Compiler Error C2275 Compiler Error C2276 Compiler Error C2277 Compiler Error C2278 Compiler Error C2279 Compiler Error C2280 Compiler Error C2281 Compiler Error C2282 Compiler Error C2283 Compiler Error C2284 Compiler Error C2285 Compiler Error C2286 Compiler Error C2287 Compiler Error C2289 Compiler Error C2290 Compiler Error C2292 Compiler Error C2293 Compiler Error C2294 Compiler Error C2295 Compiler Error C2296 Compiler Error C2297 Co
Support Search GitHub This repository Watch 65 Star 870 Fork 222 libgit2/pygit2 https://github.com/libgit2/pygit2/issues/53 Code Issues 72 Pull requests 3 Projects 0 Wiki Pulse Graphs New issue error C2275: 'PyObject' : illegal use of this type as an expression #53 Closed DK-at-FC opened this Issue Jan 23, 2012 · 4 comments Projects None yet Labels None yet Milestone No milestone Assignees No one assigned visual studio 3 participants DK-at-FC commented Jan 23, 2012 Installing in Windows crashes in setup.py python setup.py install at Microsoft Visual Studio 9.0\VC\BIN\cl.exe ... pygit2.c(496) : error C2275: 'PyObject' : illegal use of this type as an expression Error is caused by variable declaration in the middle of the method in Repository_read; Fix compiler error c2275 is to move the declaration to the beginning of the method static PyObject * Repository_read(Repository *self, PyObject *py_hex) { git_oid oid; int err; git_odb_object *obj; size_t len; PyObject* tuple; // add declaration in line 487 ... tuple = Py_BuildValue( // Remove tuple declaration in line 497 jdavid added a commit that referenced this issue Jan 25, 2012 jdavid #53 39bb5de libgit2 member jdavid commented Jan 25, 2012 Applied the change you have suggested. Close the issue if it works for you. Thanks. DK-at-FC commented Jan 25, 2012 Great! Thanks David. DK-at-FC closed this Jan 25, 2012 jdavid added a commit that referenced this issue Feb 6, 2012 jdavid