Bonjour,
mon soucis est le suivant :
mon code compile parfaitement en mode release, mais j'ai une erreur des plus étrange en mode débug alors que les 2 configurations sont identiques.
Voici les erreurs générées:
une idée ?
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 Compiling... Nappe3Dlg.cpp c:\program files\microsoft visual studio\vc98\include\new(35) : error C2059: syntax error : 'string' c:\program files\microsoft visual studio\vc98\include\new(35) : error C2091: function returns function c:\program files\microsoft visual studio\vc98\include\new(35) : error C2809: 'operator new' has no formal parameters c:\program files\microsoft visual studio\vc98\include\new(36) : error C2059: syntax error : 'string' c:\program files\microsoft visual studio\vc98\include\new(37) : error C2091: function returns function c:\program files\microsoft visual studio\vc98\include\new(37) : error C2556: 'void *(__cdecl *__cdecl operator new(void))(unsigned int,const struct std::nothrow_t &)' : overloaded function differs only by return type from 'void *(__cdecl *__cdecl op erator new(void))(unsigned int)' c:\program files\microsoft visual studio\vc98\include\new(35) : see declaration of 'new' c:\program files\microsoft visual studio\vc98\include\memory(16) : error C2059: syntax error : 'string' c:\program files\microsoft visual studio\vc98\include\memory(17) : error C2091: function returns function c:\program files\microsoft visual studio\vc98\include\memory(17) : error C2784: 'void *(__cdecl *__cdecl operator new(void))(unsigned int,class std::allocator<`template-parameter257'> &)' : could not deduce template argument for 'void *(__cdecl *)(u nsigned int,class std::allocator<_Ty> &)' from 'void *(__cdecl *)(unsigned int)' c:\program files\microsoft visual studio\vc98\include\memory(17) : error C2785: 'void *(__cdecl *__cdecl operator new(void))(unsigned int,class std::allocator<`template-parameter257'> &)' and 'void *(__cdecl *__cdecl operator new(void))(unsigned int )' have different return types c:\program files\microsoft visual studio\vc98\include\memory(16) : see declaration of 'new' c:\program files\microsoft visual studio\vc98\include\memory(17) : error C2809: 'operator new' has no formal parameters c:\program files\microsoft visual studio\vc98\include\memory(20) : error C2954: template definitions cannot nest ...
Partager