search for: c2371

Displaying 9 results from an estimated 9 matches for "c2371".

Did you mean: 2371
2008 Oct 02
1
[LLVMdev] MS C++ gives error C2371 on this code while (obviously)gcc compiles it fine
...tent and sensible.) -J -------------------------------------------------- From: "Argiris Kirtzidis" <akyrtzi at gmail.com> Sent: Thursday, October 02, 2008 12:32 PM To: "LLVM Developers Mailing List" <llvmdev at cs.uiuc.edu> Subject: Re: [LLVMdev] MS C++ gives error C2371 on this code while(obviously)gcccompiles it fine ... > See 6.4p2: "The rules for conditions apply both to selection-statements > and to the for and while statements" ... > -Argiris
2008 Oct 02
3
[LLVMdev] MS C++ gives error C2371 on this code while (obviously) gcc compiles it fine
...pilationGraph.cpp: ... for (typename C::const_iterator B = EdgesContainer.begin(), E = EdgesContainer.end(); B != E; ++B) { const Edge* E = B->getPtr(); ... MS C++ compiler (VS 2008) gives: ... CompilationGraph.cpp ..\..\..\llvm\tools\llvmc2\CompilationGraph.cpp(58) : error C2371: 'E' : redefinition; different basic types ..\..\..\llvm\tools\llvmc2\CompilationGraph.cpp(57) : see declaration of 'E' ... While GCC compiles it fine. (I'm assuming it does, 'cause almost everyone here uses gcc) Changing the code to ... for (typename C::const_...
2008 Oct 02
0
[LLVMdev] MS C++ gives error C2371 on this code while (obviously)gcc compiles it fine
Jay Freeman (saurik) wrote: > Those rules only apply to if and switch statements. (Yes, this is insane, > but true.) The entire section you are quoting from, 6.4, is titled > "Selection statements [stmt.select]", which specifically covers these two > cases. A for is an iteration statement, not a selection statement. > See 6.4p2: "The rules for conditions apply
2008 Oct 02
1
[LLVMdev] MS C++ gives error C2371 on this code while (obviously)gcc compiles it fine
...t; > > -Argiris > > > -------------------------------------------------- > > From: "Yanko" <yhdezalvarez at gmail.com> > > Sent: Thursday, October 02, 2008 8:12 AM > > To: <llvmdev at cs.uiuc.edu> > > Subject: [LLVMdev] MS C++ gives error C2371 on this code while > > (obviously)gcc compiles it fine > > > > ... > > > >> makes the code compilable by MS C++. But as a curiosity (and I really > >> don't know the answer because I can barely read C++): Which compiler > >> got it right? >...
2008 Oct 02
2
[LLVMdev] MS C++ gives error C2371 on this code while (obviously)gcc compiles it fine
...ment. Naughty gcc. -J -------------------------------------------------- From: "Argiris Kirtzidis" <akyrtzi at gmail.com> Sent: Thursday, October 02, 2008 11:33 AM To: "LLVM Developers Mailing List" <llvmdev at cs.uiuc.edu> Subject: Re: [LLVMdev] MS C++ gives error C2371 on this code while(obviously)gcccompiles it fine > Jay Freeman (saurik) wrote: >> gcc is correct. According to the ISO specification, the >> for-init-statement >> is supposed to inject any variable names into the same declarative scope >> as >> the condition of a...
2008 Oct 02
0
[LLVMdev] MS C++ gives error C2371 on this code while (obviously)gcc compiles it fine
On Thu, Oct 2, 2008 at 11:34 AM, Jay Freeman (saurik) <saurik at saurik.com>wrote: > gcc is correct. According to the ISO specification, the for-init-statement > is supposed to inject any variable names into the same declarative scope as > the condition of an equivalent restructuring of the loop in the form of a > while statement, which in turn fronts the declaration to an extra
2008 Oct 02
0
[LLVMdev] MS C++ gives error C2371 on this code while (obviously)gcc compiles it fine
...on, but gcc does not emit any errors. } -Argiris > -------------------------------------------------- > From: "Yanko" <yhdezalvarez at gmail.com> > Sent: Thursday, October 02, 2008 8:12 AM > To: <llvmdev at cs.uiuc.edu> > Subject: [LLVMdev] MS C++ gives error C2371 on this code while > (obviously)gcc compiles it fine > > ... > >> makes the code compilable by MS C++. But as a curiosity (and I really >> don't know the answer because I can barely read C++): Which compiler >> got it right? >> > > ___________...
2008 Oct 02
3
[LLVMdev] MS C++ gives error C2371 on this code while (obviously)gcc compiles it fine
...ey were /inside/ of the loop and not creating this extra scope. Frowny. -J -------------------------------------------------- From: "Yanko" <yhdezalvarez at gmail.com> Sent: Thursday, October 02, 2008 8:12 AM To: <llvmdev at cs.uiuc.edu> Subject: [LLVMdev] MS C++ gives error C2371 on this code while (obviously)gcc compiles it fine ... > makes the code compilable by MS C++. But as a curiosity (and I really > don't know the answer because I can barely read C++): Which compiler > got it right?
2005 Aug 04
2
Next swig problem
...ng past the icon problem I ran into my next problem: SpinCtrl.cpp src/SpinCtrl.cpp(1141) : error C2065: ''cWxSpinCtrl'' : undeclared identifier src/SpinCtrl.cpp(1141) : error C2228: left of ''.klass'' must have class/struct/union type src/SpinCtrl.cpp(1147) : error C2371: ''cWxSpinCtrl'' : redefinition; different basic types ... The reason for this is the way it trying to use something before declaring it: extern "C" void PostInit_wxSpinCtrl(void) { #ifndef __WXGTK__ rb_define_method(cWxSpinCtrl.klass, "set_selection", V...