Prev: RegEx
Next: error compilation with mingw
From: "Mehamli, Tristan" on 1 Feb 2008 04:53 Hi all, I've experienced problems compiling my application using wxMSW2.8.4 in DLL-Release mode. Here are the errors I got: C:\wxWidgets-2.8.4\include\wx/buffer.h(127) : error C3861: '_strdup': identifier not found C:\wxWidgets-2.8.4\include\wx/buffer.h(127) : fatal error C1903: unable to recover from previous error(s); stopping compilation C:\wxWidgets-2.8.4\include\wx/defs.h(353) : error C2894: templates cannot be declared to have 'C' linkage C:\wxWidgets-2.8.4\include\wx/wxchar.h(834) : error C3861: 'strlen': identifier not found C:\wxWidgets-2.8.4\include\wx/defs.h(602) : error C2894: templates cannot be declared to have 'C' linkage C:\wxWidgets-2.8.4\include\wx/buffer.h(127) : error C3861: '_strdup': identifier not found C:\wxWidgets-2.8.4\include\wx/buffer.h(127) : fatal error C1903: unable to recover from previous error(s); stopping compilation C:\wxWidgets-2.8.4\include\wx/buffer.h(127) : error C2054: expected '(' to follow 'class' C:\wxWidgets-2.8.4\include\wx/buffer.h(127) : error C2085: 'wxCharBuffer' : not in formal parameter list C:\wxWidgets-2.8.4\include\wx/buffer.h(127) : error C2143: syntax error : missing ';' before '{' C:\wxWidgets-2.8.4\include\wx/buffer.h(129) : error C2054: expected '(' to follow 'class' C:\wxWidgets-2.8.4\include\wx/buffer.h(129) : error C2085: 'wxWritableCharBuffer' : not in formal parameter list C:\wxWidgets-2.8.4\include\wx/buffer.h(129) : error C2143: syntax error : missing ';' before ':' C:\wxWidgets-2.8.4\include\wx/buffer.h(134) : error C2054: expected '(' to follow 'class' C:\wxWidgets-2.8.4\include\wx/buffer.h(134) : error C2085: 'wxWCharBuffer' : not in formal parameter list C:\wxWidgets-2.8.4\include\wx/buffer.h(134) : error C2143: syntax error : missing ';' before '{' C:\wxWidgets-2.8.4\include\wx/buffer.h(136) : error C2054: expected '(' to follow 'class' C:\wxWidgets-2.8.4\include\wx/buffer.h(136) : error C2085: 'wxWritableWCharBuffer' : not in formal parameter list C:\wxWidgets-2.8.4\include\wx/buffer.h(136) : error C2143: syntax error : missing ';' before ':' C:\wxWidgets-2.8.4\include\wx/buffer.h(152) : error C2061: syntax error : identifier 'wxWxCharBuffer' C:\wxWidgets-2.8.4\include\wx/buffer.h(152) : error C2059: syntax error : ';' C:\wxWidgets-2.8.4\include\wx/buffer.h(165) : error C2061: syntax error : identifier 'wxMemoryBufferData' C:\wxWidgets-2.8.4\include\wx/buffer.h(165) : error C2059: syntax error : ';' C:\wxWidgets-2.8.4\include\wx/buffer.h(166) : error C2449: found '{' at file scope (missing function header?) C:\wxWidgets-2.8.4\include\wx/buffer.h(219) : error C2059: syntax error : '}' C:\wxWidgets-2.8.4\include\wx/strconv.h(52) : error C2054: expected '(' to follow 'class' C:\wxWidgets-2.8.4\include\wx/strconv.h(53) : error C2085: 'wxMBConv' : not in formal parameter list C:\wxWidgets-2.8.4\include\wx/strconv.h(53) : error C2143: syntax error : missing ';' before '{' C:\wxWidgets-2.8.4\include\wx/strconv.h(171) : error C2054: expected '(' to follow 'class' C:\wxWidgets-2.8.4\include\wx/strconv.h(171) : error C2085: 'wxMBConvLibc' : not in formal parameter list C:\wxWidgets-2.8.4\include\wx/strconv.h(171) : error C2143: syntax error : missing ';' before ':' C:\wxWidgets-2.8.4\include\wx/strconv.h(231) : error C2054: expected '(' to follow 'class' C:\wxWidgets-2.8.4\include\wx/strconv.h(231) : error C2085: 'wxMBConvUTF7' : not in formal parameter list C:\wxWidgets-2.8.4\include\wx/strconv.h(231) : error C2143: syntax error : missing ';' before ':' C:\wxWidgets-2.8.4\include\wx/strconv.h(244) : error C2054: expected '(' to follow 'class' C:\wxWidgets-2.8.4\include\wx/strconv.h(244) : error C2085: 'wxMBConvUTF8' : not in formal parameter list C:\wxWidgets-2.8.4\include\wx/strconv.h(244) : error C2143: syntax error : missing ';' before ':' C:\wxWidgets-2.8.4\include\wx/strconv.h(268) : error C2054: expected '(' to follow 'class' C:\wxWidgets-2.8.4\include\wx/strconv.h(268) : error C2085: 'wxMBConvUTF16Base' : not in formal parameter list C:\wxWidgets-2.8.4\include\wx/strconv.h(268) : error C2143: syntax error : missing ';' before ':' C:\wxWidgets-2.8.4\include\wx/strconv.h(287) : error C2054: expected '(' to follow 'class' C:\wxWidgets-2.8.4\include\wx/strconv.h(287) : error C2085: 'wxMBConvUTF16LE' : not in formal parameter list C:\wxWidgets-2.8.4\include\wx/strconv.h(287) : error C2143: syntax error : missing ';' before ':' C:\wxWidgets-2.8.4\include\wx/strconv.h(301) : error C2054: expected '(' to follow 'class' C:\wxWidgets-2.8.4\include\wx/strconv.h(301) : error C2085: 'wxMBConvUTF16BE' : not in formal parameter list C:\wxWidgets-2.8.4\include\wx/strconv.h(301) : error C2143: syntax error : missing ';' before ':' C:\wxWidgets-2.8.4\include\wx/strconv.h(315) : error C2054: expected '(' to follow 'class' C:\wxWidgets-2.8.4\include\wx/strconv.h(315) : error C2085: 'wxMBConvUTF32Base' : not in formal parameter list C:\wxWidgets-2.8.4\include\wx/strconv.h(315) : error C2143: syntax error : missing ';' before ':' C:\wxWidgets-2.8.4\include\wx/strconv.h(333) : error C2054: expected '(' to follow 'class' C:\wxWidgets-2.8.4\include\wx/strconv.h(333) : error C2085: 'wxMBConvUTF32LE' : not in formal parameter list C:\wxWidgets-2.8.4\include\wx/strconv.h(333) : error C2143: syntax error : missing ';' before ':' C:\wxWidgets-2.8.4\include\wx/strconv.h(347) : error C2054: expected '(' to follow 'class' C:\wxWidgets-2.8.4\include\wx/strconv.h(347) : error C2085: 'wxMBConvUTF32BE' : not in formal parameter list C:\wxWidgets-2.8.4\include\wx/strconv.h(347) : error C2143: syntax error : missing ';' before ':' C:\wxWidgets-2.8.4\include\wx/strconv.h(363) : error C2054: expected '(' to follow 'class' C:\wxWidgets-2.8.4\include\wx/strconv.h(363) : error C2085: 'wxCSConv' : not in formal parameter list C:\wxWidgets-2.8.4\include\wx/strconv.h(363) : error C2143: syntax error : missing ';' before ':' C:\wxWidgets-2.8.4\include\wx/strconv.h(425) : error C2143: syntax error : missing '{' before '&' C:\wxWidgets-2.8.4\include\wx/strconv.h(425) : error C2059: syntax error : '&' C:\wxWidgets-2.8.4\include\wx/strconv.h(428) : error C2143: syntax error : missing '{' before '&' C:\wxWidgets-2.8.4\include\wx/strconv.h(428) : error C2059: syntax error : '&' C:\wxWidgets-2.8.4\include\wx/strconv.h(429) : error C2143: syntax error : missing '{' before '&' C:\wxWidgets-2.8.4\include\wx/strconv.h(429) : error C2059: syntax error : '&' C:\wxWidgets-2.8.4\include\wx/strconv.h(430) : error C2143: syntax error : missing '{' before '&' C:\wxWidgets-2.8.4\include\wx/strconv.h(430) : error C2059: syntax error : '&' C:\wxWidgets-2.8.4\include\wx/strconv.h(439) : error C2143: syntax error : missing '{' before '*' C:\wxWidgets-2.8.4\include\wx/strconv.h(446) : error C2143: syntax error : missing '{' before '*' C:\wxWidgets-2.8.4\include\wx/strconv.h(449) : error C2143: syntax error : missing '{' before '&' C:\wxWidgets-2.8.4\include\wx/strconv.h(449) : error C2059: syntax error : '&' C:\wxWidgets-2.8.4\include\wx/strconv.h(455) : error C2143: syntax error : missing '{' before '*' C:\wxWidgets-2.8.4\include\wx/strconv.h(465) : error C2061: syntax error : identifier 'wxMBConvUTF16' C:\wxWidgets-2.8.4\include\wx/strconv.h(465) : error C2059: syntax error : ';' C:\wxWidgets-2.8.4\include\wx/strconv.h(466) : error C2061: syntax error : identifier 'wxMBConvUTF32' C:\wxWidgets-2.8.4\include\wx/strconv.h(466) : error C2059: syntax error : ';' C:\wxWidgets-2.8.4/include/wx\string.h(58) : error C2054: expected '(' to follow 'class' C:\wxWidgets-2.8.4/include/wx\string.h(58) : error C2085: 'wxString' : not in formal parameter list C:\wxWidgets-2.8.4/include/wx\string.h(93) : error C2085: 'wxEmptyString' : not in formal parameter list C:\wxWidgets-2.8.4/include/wx\string.h(104) : error C2061: syntax error : identifier 'inline' C:\wxWidgets-2.8.4/include/wx\string.h(107) : error C2054: expected '(' to follow 'inline' C:\wxWidgets-2.8.4/include/wx\string.h(108) : error C2085: 'Strlen' : not in formal parameter list C:\wxWidgets-2.8.4/include/wx\string.h(108) : error C2143: syntax error : missing ';' before '{' C:\wxWidgets-2.8.4/include/wx\string.h(111) : error C2054: expected '(' to follow 'inline' C:\wxWidgets-2.8.4/include/wx\string.h(112) : error C2085: 'Stricmp' : not in formal parameter list C:\wxWidgets-2.8.4/include/wx\string.h(112) : error C2143: syntax error : missing ';' before '{' C:\Program Files\Microsoft Visual Studio 8\VC\include\cstdio(25) : error C2143: syntax error : missing '{' before ':' C:\Program Files\Microsoft Visual Studio 8\VC\include\cstdio(25) : error C2059: syntax error : ':' C:\Program Files\Microsoft Visual Studio 8\VC\include\cstdio(25) : error C2143: syntax error : missing '{' before ':' C:\Program Files\Microsoft Visual Studio 8\VC\include\cstdio(25) : error C2059: syntax error : ':' C:\Program Files\Microsoft Visual Studio 8\VC\include\cstdio(25) : error C2143: syntax error : missing '{' before ':' C:\Program Files\Microsoft Visual Studio 8\VC\include\cstdio(25) : error C2059: syntax error : ':' C:\Program Files\Microsoft Visual Studio 8\VC\include\cstdio(26) : error C2143: syntax error : missing '{' before ':' C:\Program Files\Microsoft Visual Studio 8\VC\include\cstdio(26) : error C2059: syntax error : ':' C:\Program Files\Microsoft Visual Studio 8\VC\include\cstdio(26) : error C2143: syntax error : missing '{' before ':' C:\Program Files\Microsoft Visual Studio 8\VC\include\cstdio(26) : error C2059: syntax error : ':' C:\Program Files\Microsoft Visual Studio 8\VC\include\cstdio(26) : error C2143: syntax error : missing '{' before ':' C:\Program Files\Microsoft Visual Studio 8\VC\include\cstdio(26) : error C2059: syntax error : ':' C:\Program Files\Microsoft Visual Studio 8\VC\include\cstdio(27) : error C2143: syntax error : missing '{' before ':' C:\Program Files\Microsoft Visual Studio 8\VC\include\cstdio(27) : error C2059: syntax error : ':' C:\Program Files\Microsoft Visual Studio 8\VC\include\cstdio(27) : error C2143: syntax error : missing '{' before ':' C:\Program Files\Microsoft Visual Studio 8\VC\include\cstdio(27) : error C2059: syntax error : ':' C:\Program Files\Microsoft Visual Studio 8\VC\include\cstdio(27) : error C2143: syntax error : missing '{' before ':' C:\Program Files\Microsoft Visual Studio 8\VC\include\cstdio(27) : error C2059: syntax error : ':' C:\Program Files\Microsoft Visual Studio 8\VC\include\cstdio(28) : error C2143: syntax error : missing '{' before ':' C:\Program Files\Microsoft Visual Studio 8\VC\include\cstdio(28) : error C2059: syntax error : ':' C:\Program Files\Microsoft Visual Studio 8\VC\include\cstdio(28) : error C2143: syntax error : missing '{' before ':' C:\Program Files\Microsoft Visual Studio 8\VC\include\cstdio(28) : error C2059: syntax error : ':' C:\Program Files\Microsoft Visual Studio 8\VC\include\cstdio(28) : error C2143: syntax error : missing '{' before ':' C:\Program Files\Microsoft Visual Studio 8\VC\include\cstdio(28) : fatal error C1003: error count exceeds 100; stopping compilation I didn't find explanations about it as it works perfectly in DLL-Debug mode. I'm using MS VC8 with SP1 under Windows XP 32bits. Does anyone has a clue of what can that be? Thanks in advance, TM. --------------------------------------------------------------------- To unsubscribe, e-mail: wx-users-unsubscribe(a)lists.wxwidgets.org For additional commands, e-mail: wx-users-help(a)lists.wxwidgets.org
From: "Harald Klein" on 1 Feb 2008 05:44 Hi, did you compile the debug release mode libraries and changed set in your settings? HTH Harald > Hi all, > > I've experienced problems compiling my application using wxMSW2.8.4 in > DLL-Release mode. Here are the errors I got: > > C:\wxWidgets-2.8.4\include\wx/buffer.h(127) : error C3861: '_strdup': > identifier not found > C:\wxWidgets-2.8.4\include\wx/buffer.h(127) : fatal error C1903: unable > to recover from previous error(s); stopping compilation > > C:\wxWidgets-2.8.4\include\wx/defs.h(353) : error C2894: templates > cannot be declared to have 'C' linkage > C:\wxWidgets-2.8.4\include\wx/wxchar.h(834) : error C3861: 'strlen': > identifier not found > C:\wxWidgets-2.8.4\include\wx/defs.h(602) : error C2894: templates > cannot be declared to have 'C' linkage > C:\wxWidgets-2.8.4\include\wx/buffer.h(127) : error C3861: '_strdup': > identifier not found > C:\wxWidgets-2.8.4\include\wx/buffer.h(127) : fatal error C1903: unable > to recover from previous error(s); stopping compilation > > C:\wxWidgets-2.8.4\include\wx/buffer.h(127) : error C2054: expected '(' > to follow 'class' > C:\wxWidgets-2.8.4\include\wx/buffer.h(127) : error C2085: > 'wxCharBuffer' : not in formal parameter list > C:\wxWidgets-2.8.4\include\wx/buffer.h(127) : error C2143: syntax error > : missing ';' before '{' > C:\wxWidgets-2.8.4\include\wx/buffer.h(129) : error C2054: expected '(' > to follow 'class' > C:\wxWidgets-2.8.4\include\wx/buffer.h(129) : error C2085: > I didn't find explanations about it as it works perfectly in DLL-Debug > mode. > I'm using MS VC8 with SP1 under Windows XP 32bits. > Does anyone has a clue of what can that be? -- GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS. Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail --------------------------------------------------------------------- To unsubscribe, e-mail: wx-users-unsubscribe(a)lists.wxwidgets.org For additional commands, e-mail: wx-users-help(a)lists.wxwidgets.org
From: "Mehamli, Tristan" on 1 Feb 2008 05:54 HTH>did you compile the debug release mode libraries and changed set in your settings? Yes I did. I still don't understand what's wrong. I'm checking my compilation options, but nothing obvious. Thanks anyway. --------------------------------------------------------------------- To unsubscribe, e-mail: wx-users-unsubscribe(a)lists.wxwidgets.org For additional commands, e-mail: wx-users-help(a)lists.wxwidgets.org
From: "Mehamli, Tristan" on 1 Feb 2008 11:23 I finally found what was wrong: a bad path in "Additional Include Directories". --------------------------------------------------------------------- To unsubscribe, e-mail: wx-users-unsubscribe(a)lists.wxwidgets.org For additional commands, e-mail: wx-users-help(a)lists.wxwidgets.org
|
Pages: 1 Prev: RegEx Next: error compilation with mingw |