Re: [Opalvoip-devel] VS2008 PTLIB Compiling Errors in url.cxx
Brought to you by:
csoutheren,
rjongbloed
From: Karsten A. <K-...@we...> - 2011-08-02 07:25:54
|
Nice Morning, The Version of PTLib is 2.10.1 from sourceforge v3.10 Luyten. But ok...I don´t know what I´ve done but now it has compiled successfully. Best Regards Karsten -----Ursprüngliche Nachricht----- Von: "Robert Jongbloed" <ro...@vo...> Gesendet: 02.08.2011 02:16:18 An: opa...@li... Betreff: Re: [Opalvoip-devel] VS2008 PTLIB Compiling Errors in url.cxx >First, it compiles fine here on 2005, 2008 and 2010. > >Second, what version of PTLib/OPAL are you using? > >Third, there is no pre-processor command anywhere near line 167 of url.cxx! > >It smells like you have some corrupted files in some way. Though how that comes about I have no idea. > > > >Robert Jongbloed >OPAL/OpenH323/PTLib Architect and Co-founder. > >> -----Original Message----- >> From: Karsten Asche [mailto:K-...@we...] >> Sent: Thursday, 28 July 2011 7:34 PM >> To: opa...@li... >> Subject: [Opalvoip-devel] VS2008 PTLIB Compiling Errors in url.cxx >> >> Hi @ all, >> >> if I´m trying to Compile ptlib on Windows 7 with VS2008 SP1 I´m getting >> following errors in url.cxx. >> What I have to do? >> >> Errors: >> 1>..\..\ptclib\url.cxx(167) : error C2014: preprocessor command must >> start as first nonwhite space >> 1>..\..\ptclib\url.cxx(173) : error C2014: preprocessor command must >> start as first nonwhite space >> 1>..\..\ptclib\url.cxx(175) : error C2014: preprocessor command must >> start as first nonwhite space >> 1>..\..\ptclib\url.cxx(177) : error C2143: syntax error : missing ')' >> before '{' >> 1>..\..\ptclib\url.cxx(177) : error C2512: >> 'PURLLegacyScheme::PURLLegacyScheme' : no appropriate default constructor >> available >> 1>..\..\ptclib\url.cxx(177) : error C2056: illegal expression >> 1>..\..\ptclib\url.cxx(177) : error C2460: 'PURLLegacyScheme_::<alignment >> member>' : uses 'PURLLegacyScheme_', which is being defined >> 1> ..\..\ptclib\url.cxx(169) : see declaration of 'PURLLegacyScheme_' >> 1>..\..\ptclib\url.cxx(177) : error C2473: '<alignment member>' : looks >> like a function definition, but there is no parameter list. >> 1>..\..\ptclib\url.cxx(179) : error C2065: 'user' : undeclared identifier >> 1>..\..\ptclib\url.cxx(179) : error C4430: missing type specifier - int >> assumed. Note: C++ does not support default-int >> 1>..\..\ptclib\url.cxx(179) : error C2864: >> 'PURLLegacyScheme_::hasUsername' : only static const integral data >> members can be initialized within a class >> 1>..\..\ptclib\url.cxx(181) : error C2065: 'pass' : undeclared identifier >> 1>..\..\ptclib\url.cxx(181) : error C4430: missing type specifier - int >> assumed. Note: C++ does not support default-int >> 1>..\..\ptclib\url.cxx(181) : error C2864: >> 'PURLLegacyScheme_::hasPassword' : only static const integral data >> members can be initialized within a class >> 1>..\..\ptclib\url.cxx(183) : error C2065: 'host' : undeclared identifier >> 1>..\..\ptclib\url.cxx(183) : error C4430: missing type specifier - int >> assumed. Note: C++ does not support default-int >> 1>..\..\ptclib\url.cxx(183) : error C2864: >> 'PURLLegacyScheme_::hasHostPort' : only static const integral data >> members can be initialized within a class >> 1>..\..\ptclib\url.cxx(185) : error C2065: 'def' : undeclared identifier >> 1>..\..\ptclib\url.cxx(185) : error C4430: missing type specifier - int >> assumed. Note: C++ does not support default-int >> 1>..\..\ptclib\url.cxx(185) : error C2864: >> 'PURLLegacyScheme_::defaultToUserIfNoAt' : only static const integral >> data members can be initialized within a class >> 1>..\..\ptclib\url.cxx(187) : error C2065: 'defhost' : undeclared >> identifier >> 1>..\..\ptclib\url.cxx(187) : error C4430: missing type specifier - int >> assumed. Note: C++ does not support default-int >> 1>..\..\ptclib\url.cxx(187) : error C2864: >> 'PURLLegacyScheme_::defaultHostToLocal' : only static const integral data >> members can be initialized within a class >> 1>..\..\ptclib\url.cxx(189) : error C2065: 'query' : undeclared >> identifier >> 1>..\..\ptclib\url.cxx(189) : error C4430: missing type specifier - int >> assumed. Note: C++ does not support default-int >> 1>..\..\ptclib\url.cxx(189) : error C2864: 'PURLLegacyScheme_::hasQuery' >> : only static const integral data members can be initialized within a >> class >> 1>..\..\ptclib\url.cxx(191) : error C2065: 'params' : undeclared >> identifier >> 1>..\..\ptclib\url.cxx(191) : error C4430: missing type specifier - int >> assumed. Note: C++ does not support default-int >> 1>..\..\ptclib\url.cxx(191) : error C2864: >> 'PURLLegacyScheme_::hasParameters' : only static const integral data >> members can be initialized within a class >> 1>..\..\ptclib\url.cxx(193) : error C2065: 'frags' : undeclared >> identifier >> 1>..\..\ptclib\url.cxx(193) : error C4430: missing type specifier - int >> assumed. Note: C++ does not support default-int >> 1>..\..\ptclib\url.cxx(193) : error C2864: >> 'PURLLegacyScheme_::hasFragments' : only static const integral data >> members can be initialized within a class >> 1>..\..\ptclib\url.cxx(195) : error C2065: 'path' : undeclared identifier >> 1>..\..\ptclib\url.cxx(195) : error C4430: missing type specifier - int >> assumed. Note: C++ does not support default-int >> 1>..\..\ptclib\url.cxx(195) : error C2864: 'PURLLegacyScheme_::hasPath' : >> only static const integral data members can be initialized within a class >> 1>..\..\ptclib\url.cxx(197) : error C2065: 'rel' : undeclared identifier >> 1>..\..\ptclib\url.cxx(197) : error C4430: missing type specifier - int >> assumed. Note: C++ does not support default-int >> 1>..\..\ptclib\url.cxx(197) : error C2864: >> 'PURLLegacyScheme_::relativeImpliesScheme' : only static const integral >> data members can be initialized within a class >> 1>..\..\ptclib\url.cxx(199) : error C2065: 'port' : undeclared identifier >> 1>..\..\ptclib\url.cxx(199) : error C4430: missing type specifier - int >> assumed. Note: C++ does not support default-int >> 1>..\..\ptclib\url.cxx(199) : error C2864: >> 'PURLLegacyScheme_::defaultPort' : only static const integral data >> members can be initialized within a class >> 1>..\..\ptclib\url.cxx(203) : error C2143: syntax error : missing ';' >> before '}' >> 1>..\..\ptclib\url.cxx(203) : error C2059: syntax error : '}' >> 1>..\..\ptclib\url.cxx(203) : error C2143: syntax error : missing ';' >> before '}' >> 1>..\..\ptclib\url.cxx(203) : error C2059: syntax error : '}' >> 1>..\..\ptclib\url.cxx(205) : error C2014: preprocessor command must >> start as first nonwhite space >> 1>..\..\ptclib\url.cxx(253) : error C2143: syntax error : missing ',' >> before 'namespace' >> 1>..\..\ptclib\url.cxx(253) : error C2143: syntax error : missing '>' >> before '{' >> 1>..\..\ptclib\url.cxx(253) : error C2143: syntax error : missing ';' >> before '{' >> 1>..\..\ptclib\url.cxx(275) : error C3861: 'port': identifier not found >> 1>..\..\ptclib\url.cxx(277) : error C3861: 'portSupplied': identifier not >> found >> 1>..\..\ptclib\url.cxx(279) : error C3861: 'relativePath': identifier not >> found >> 1>..\..\ptclib\url.cxx(281) : error C2143: syntax error : missing ',' >> before '{' >> 1>..\..\ptclib\url.cxx(281) : error C2143: syntax error : missing ';' >> before '{' >> 1>..\..\ptclib\url.cxx(283) : error C2143: syntax error : missing ';' >> before '}' >> 1>..\..\ptclib\url.cxx(291) : error C2143: syntax error : missing ';' >> before '{' >> 1>..\..\ptclib\url.cxx(293) : error C2065: 'defaultScheme' : undeclared >> identifier >> 1>..\..\ptclib\url.cxx(295) : error C2143: syntax error : missing ';' >> before '}' >> 1>..\..\ptclib\url.cxx(303) : error C2143: syntax error : missing ';' >> before '{' >> 1>..\..\ptclib\url.cxx(305) : error C2065: 'defaultScheme' : undeclared >> identifier >> 1>..\..\ptclib\url.cxx(307) : error C2143: syntax error : missing ';' >> before '}' >> 1>..\..\ptclib\url.cxx(319) : error C3861: 'port': identifier not found >> 1>..\..\ptclib\url.cxx(321) : error C3861: 'portSupplied': identifier not >> found >> 1>..\..\ptclib\url.cxx(323) : error C3861: 'relativePath': identifier not >> found >> 1>..\..\ptclib\url.cxx(325) : error C2143: syntax error : missing ',' >> before '{' >> 1>..\..\ptclib\url.cxx(325) : error C2143: syntax error : missing ';' >> before '{' >> 1>..\..\ptclib\url.cxx(335) : error C2143: syntax error : missing ')' >> before ';' >> 1>..\..\ptclib\url.cxx(335) : error C2059: syntax error : ')' >> 1>..\..\ptclib\url.cxx(345) : error C2143: syntax error : missing ';' >> before '}' >> 1>..\..\ptclib\url.cxx(353) : error C2143: syntax error : missing ';' >> before '{' >> 1>..\..\ptclib\url.cxx(355) : error C2143: syntax error : missing ',' >> before ')' >> 1>..\..\ptclib\url.cxx(359) : error C2143: syntax error : missing ';' >> before '}' >> 1>..\..\ptclib\url.cxx(367) : error C2143: syntax error : missing ';' >> before '{' >> 1>..\..\ptclib\url.cxx(371) : error C2143: syntax error : missing ';' >> before '}' >> 1>..\..\ptclib\url.cxx(379) : error C2143: syntax error : missing ';' >> before '{' >> 1>..\..\ptclib\url.cxx(383) : error C2143: syntax error : missing ';' >> before '}' >> 1>..\..\ptclib\url.cxx(391) : error C2143: syntax error : missing ';' >> before '{' >> 1>..\..\ptclib\url.cxx(399) : error C2143: syntax error : missing ';' >> before '}' >> 1>..\..\ptclib\url.cxx(405) : error C2065: 'TranslationType' : undeclared >> identifier >> 1>..\..\ptclib\url.cxx(407) : error C2143: syntax error : missing ';' >> before '{' >> 1>..\..\ptclib\url.cxx(419) : error C2143: syntax error : missing ';' >> before '{' >> 1>..\..\ptclib\url.cxx(441) : error C2143: syntax error : missing ';' >> before '}' >> 1>..\..\ptclib\url.cxx(445) : error C2065: 'pos' : undeclared identifier >> 1>..\..\ptclib\url.cxx(445) : error C2143: syntax error : missing ',' >> before ')' >> 1>..\..\ptclib\url.cxx(447) : error C2065: 'xlat' : undeclared identifier >> 1>..\..\ptclib\url.cxx(447) : error C2065: 'pos' : undeclared identifier >> 1>..\..\ptclib\url.cxx(447) : error C2143: syntax error : missing ',' >> before ')' >> 1>..\..\ptclib\url.cxx(447) : error C2065: 'pos' : undeclared identifier >> 1>..\..\ptclib\url.cxx(447) : error C2143: syntax error : missing ',' >> before ')' >> 1>..\..\ptclib\url.cxx(451) : error C2143: syntax error : missing ';' >> before '{' >> 1>..\..\ptclib\url.cxx(455) : error C2065: 'space' : undeclared >> identifier >> 1>..\..\ptclib\url.cxx(455) : error C2143: syntax error : missing ',' >> before ')' >> 1>..\..\ptclib\url.cxx(459) : error C2143: syntax error : missing ';' >> before '}' >> 1>..\..\ptclib\url.cxx(465) : error C2143: syntax error : missing ';' >> before '}' >> 1>..\..\ptclib\url.cxx(471) : error C2065: 'TranslationType' : undeclared >> identifier >> 1>..\..\ptclib\url.cxx(473) : error C2143: syntax error : missing ';' >> before '{' >> 1>..\..\ptclib\url.cxx(483) : error C2143: syntax error : missing ';' >> before '{' >> 1>..\..\ptclib\url.cxx(487) : error C2065: 'pos' : undeclared identifier >> 1>..\..\ptclib\url.cxx(487) : error C2143: syntax error : missing ',' >> before ')' >> 1>..\..\ptclib\url.cxx(491) : error C2143: syntax error : missing ';' >> before '}' >> 1>..\..\ptclib\url.cxx(497) : error C2065: 'pos' : undeclared identifier >> 1>..\..\ptclib\url.cxx(497) : error C2143: syntax error : missing ',' >> before ')' >> 1>..\..\ptclib\url.cxx(497) : error C2143: syntax error : missing ';' >> before '{' >> 1>..\..\ptclib\url.cxx(503) : error C2143: syntax error : missing ';' >> before '{' >> 1>..\..\ptclib\url.cxx(513) : error C2143: syntax error : missing ';' >> before '}' >> 1>..\..\ptclib\url.cxx(515) : error C2143: syntax error : missing ';' >> before '}' >> 1>..\..\ptclib\url.cxx(521) : error C2143: syntax error : missing ';' >> before '}' >> 1>..\..\ptclib\url.cxx(527) : error C2065: 'vars' : undeclared identifier >> 1>..\..\ptclib\url.cxx(527) : error C2275: 'PStringToString' : illegal >> use of this type as an expression >> 1> c:\diverses\SourceCode\VOIP\opal\ptlib-2.2.1- >> src\ptlib\include\ptlib/pstring.h(2658) : see declaration of >> 'PStringToString' >> 1>..\..\ptclib\url.cxx(527) : error C2146: syntax error : missing ',' >> before identifier 'sep1' >> 1>..\..\ptclib\url.cxx(527) : error C2065: 'sep1' : undeclared identifier >> 1>..\..\ptclib\url.cxx(527) : error C2146: syntax error : missing ',' >> before identifier 'sep2' >> 1>..\..\ptclib\url.cxx(527) : fatal error C1003: error count exceeds 100; >> stopping compilation >> >> Best regards, >> Karsten >> >> ------------------------------------------------------------------------- >> ----- >> Got Input? Slashdot Needs You. >> Take our quick survey online. Come on, we don't ask for help often. >> Plus, you'll get a chance to win $100 to spend on ThinkGeek. >> http://p.sf.net/sfu/slashdot-survey >> _______________________________________________ >> Opalvoip-devel mailing list >> Opa...@li... >> https://lists.sourceforge.net/lists/listinfo/opalvoip-devel > > >------------------------------------------------------------------------------ >BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA >The must-attend event for mobile developers. Connect with experts. >Get tools for creating Super Apps. See the latest technologies. >Sessions, hands-on labs, demos & much more. Register early & save! >http://p.sf.net/sfu/rim-blackberry-1 >_______________________________________________ >Opalvoip-devel mailing list >Opa...@li... >https://lists.sourceforge.net/lists/listinfo/opalvoip-devel |