Home > Syntax Error > C2143 Syntax Error Enum

C2143 Syntax Error Enum


Connect with top rated Experts 11 Experts available now in Live! Join them; it only takes a minute: Sign up Visual studio compiler errors at enum up vote 0 down vote favorite I have the following code which compiles without errors under Ask a question Quick access Forums home Browse forums users FAQ Search related threads Remove From My Forums Answered by: Problem with enum in visual C++ express 2010 Archived Forums V Get Started with C or C++ C Tutorial C++ Tutorial Get the C++ Book All Tutorials Advanced Search Forum General Programming Boards C++ Programming Odd enum error... http://iembra.org/syntax-error/c2143-syntax-error.php

See online help for details. 1> e:\program files\microsoft visual studio 10.0\vc\include\stdio.h(234) : see declaration of 'fopen' 1>c:\opencv2.2\include\opencv2\highgui\highgui_c.h(171): error C2059: syntax error : 'constant' 1>c:\opencv2.2\include\opencv2\highgui\highgui_c.h(171): error C3805: 'constant': unexpected token, expected either Your compiler definitely does not have a symbol defined for the contents of your enum. If you wish to continue this conversation start a new topic. e. http://stackoverflow.com/questions/8139738/visual-studio-compiler-errors-at-enum

C2143 Syntax Error Missing ' ' Before 'using'

I have attached the BMPLoader.cpp and BMPLoader.h files if you want to try, To be specific these are the lines where the error is coming. You can also write it like Code: enum CompressionType { enBI_RGB = BI_RGB, enBI_RLE8 = BI_RLE8, enBI_RLE4 = BI_RLE4 }; But maybe you want to skip declaring this enum type altogether Note: C++ does not support default-int (17) : error C2143: syntax error : missing ';' before '}' (17) : error C4430: missing type specifier - int assumed.

Join Now For immediate help use Live now! To make matters worse it works absolutely fine on other machine which have the same version of the Visual Studio I am using. Reply With Quote October 25th, 2007,09:35 AM #6 utkseth View Profile View Forum Posts Member Join Date Sep 2007 Posts 34 Re: enumeration giving weird error Hi treuss The solution you Error C2143 Syntax Error Missing ' ' Before 'constant' I now added #undef DELETE and it works fine.

You may have to register or Login before you can post: click the register link above to proceed. C2143 Syntax Error Missing ' ' Before 'type' Sign in to comment Contact GitHub API Training Shop Blog About © 2016 GitHub, Inc. When I try to compile it with windows XP and visual C++ 6 sp5 it gives me folowing errors D:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\excpt.h(72) : error C2143: syntax error : missing '{' Originally Posted by Bjarne Stroustrup (2000-10-14) I get maybe two dozen requests for help with some sort of programming or design problem every day.

When Sudoku met Ratio Colonists kill beasts, only to discover beasts were killing off immature monsters 2048-like array shift Can taking a few months off for personal development make it harder Error C2143 Syntax Error Missing ' ' Before ' ' Template The content you requested has been removed. In the Log.h file I have this declaration: enum EVENT_TYPE { ERROR, MISC, CONSTRUCTOR, DECONSTRUCTOR }; I also programmed a FrameRate class which I can use for my games. Again, it's probably something simple I overlooked but thanks for your help [edited by - sanguineraven on January 14, 2004 11:10:13 AM] [edited by - sanguineraven on January 14, 2004 11:16:51

C2143 Syntax Error Missing ' ' Before 'type'

Hence Go arisen as low-level language with fast compilation… Go Programming Languages-Other Programming Java C++ Introduction to C++: Vectors - Define, Store, Retrieve Video by: Ian The viewer will be introduced Go Here Could you tell me please why was that happening and how this solution you provided started working ? C2143 Syntax Error Missing ' ' Before 'using' share|improve this answer answered Nov 15 '11 at 16:36 Polynomial 17k44886 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign Error C2143 Syntax Error Missing Before Class Head Please delete anybody you can.

Learning resources Microsoft Virtual Academy Channel 9 MSDN Magazine Community Forums Blogs Codeplex Support Self support Programs BizSpark (for startups) Microsoft Imagine (for students) United States (English) Newsletter Privacy & cookies http://iembra.org/syntax-error/c-syntax-error-at-end-of-input.php I can't tell exactly because I don't have openGL headers running around. It is a fact of life for the programmer. In the version of C implemented by Visual C++ (C89) declarations must come before statements. Error C2143 Syntax Error Missing Before String

Creating a game, from start to finish Recent additions How to create a shared library on Linux with GCC - December 30, 2011 Enum classes and nullptr in C++11 - Reload to refresh your session. XD "When your work speaks for itself - don't interrupt!" -Samantha Ingraham. check over here Errors that make their wa… C++ Getting Started With Go Programming Article by: Shweta Go is an acronym of golang, is a programming language developed Google in 2007.

Reload to refresh your session. Error C2143 Syntax Error Missing ' ' Before 'const' asked 4 years ago viewed 4697 times active 4 years ago Blog Stack Overflow Podcast #89 - The Decline of Stack Overflow Has Been Greatly… Related 1265Using Git with Visual Studio1003Visual I thought you could redefine it in an enum without a prob but obviously not EDIT: uhh yeah.

Search Engine Optimisation provided by DragonByte SEO v2.0.32 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.

Make a suggestion Dev centers Windows Office Visual Studio Microsoft Azure More... You signed in with another tab or window. You could try enum @Type to specify a literal, though you may need to prefix it with @ elsewhere. Error C2059: Syntax Error : '' More computing sins are committed in the name of efficiency (without necessarily achieving it) than for any other single reason - including blind stupidity. --W.A.Wulf Premature optimization is the root of

Terms Privacy Security Status Help You can't perform that action at this time. How can I gradually encrypt a file that is being downloaded?' Find Iteration of Day of Week in Month What do you call a GUI widget that slides out from the You need to change the name or specify that it's a literal. http://iembra.org/syntax-error/c-syntax-error.php Proving the regularity of a certain language Is "The empty set is a subset of any set" a convention?

The time now is 06:07 PM. Knuth Please read Information on posting before posting, especially the info on using [code] tags. cl /EP ... > xxx.txt ? How and when errors are detected have a great impact on quality and cost of a product.

Visit our UserVoice Page to submit and vote on ideas!