Opengl Error C2381 Exit Redefinition
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers 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 of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Error in visual studio about exit declaration up vote -1 down vote favorite **this error appears each time visual studio 2008 run my code which uses opencv and opengl : 1>c:\program files (x86)\microsoft visual studio 9.0\vc\include\stdlib.h(371) : error C2381: 'exit' : redefinition; __declspec(noreturn) differs 1> c:\program files (x86)\microsoft visual studio 9.0\vc\include\gl\glut.h(146) : see declaration of 'exit' 1> c:\program files (x86)\microsoft visual studio 9.0\vc\include\gl\glut.h(146) : see declaration of 'exit' how can I solve it?** visual-studio-2008 opengl opencv share|improve this question asked May 24 '12 at 22:33 Storm2012 1091313 We're going to need more than just some error messages. What is the code that's having this problem, what libraries are you linking with, etc. –Nicol Bolas May 25 '12 at 4:32 these are the library I included –Storm2012 May 25 '12 at 16:38 #include
SQL Server 2014 Express 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 reference Dev centers Samples Retired content We’re sorry. The content you requested has been removed. You’ll be auto redirected in 1 second. Ask a question Quick access Forums home Browse forums users FAQ Search related threads Remove From My Forums Answered by: error C2381: 'exit' : redefinition; __declspec(noreturn) differs Archived Forums V > Visual C++ Express Edition Question 1 Sign in to vote Hi,I was wondering if anyone could help me with a problem i have come across. I'm http://stackoverflow.com/questions/10746226/error-in-visual-studio-about-exit-declaration using theexit() function in my program to close it when an error occurs. This worked fine when i createdthe program at university on a linux machine but now i am attempting to set it up on a windowsmachine i get the following error:error C2381: 'exit' : redefinition; __declspec(noreturn) differs C:\Program Files\Microsoft Visual Studio 8\VC\include\GL/glut.h(146) : see declaration of 'exit'I understand that there are two definitions of exit and its unsure of https://social.msdn.microsoft.com/Forums/en-US/4cf463c1-5fee-4daa-b135-be8b06ab7f8f/error-c2381-exit-redefinition-declspecnoreturn-differs?forum=Vsexpressvc which to use, but what is the best way of solving the problem?Thanks in advance,Craig Friday, June 29, 2007 6:59 PM Answers 13 Sign in to vote I managed to solve this problem.For those who come across this in the future i simply rearranged #include
C2381: 'exit' : redefinition; __declspec(noreturn) opengl error differs c:\program files (x86)\microsoft visual studio 10.0\vc\include\gl\glut.h(146) : see declaration of 'exit' WAT DO I DO???? Apr 16, 2011 at 8:59am opengl error c2381 UTC hamsterman (4538) include glut after you've included some standard library. Apr 16, 2011 at 9:01am UTC anvith (2) thank u so much :) :) :) Topic archived. No new replies allowed. C++ Information Tutorials Reference Articles Forum Forum BeginnersWindows ProgrammingUNIX/Linux ProgrammingGeneral C++ ProgrammingLoungeJobs Home page | Privacy policy© cplusplus.com, 2000-2016 - All rights reserved - v3.1Spotted an error? contact us