473,326 Members | 2,173 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

VS2005 breaking my builds !

I'm having problem compiling one of my projects with VS2005. The
problems arise with VS2005 (apparent?) inability to compile log4cpp.

Has anyone succesfully compiled log4cpp using VS2005?

Here are the errors I get:

Error 1 error C2039: 'iterator_category' : is not a member of
'log4cplus::helpers::string_append_iterator<_Conta iner>' c:\program
files\microsoft visual studio 8\vc\include\xutility 572
Error 2 error C2146: syntax error : missing ';' before identifier
'iterator_category' c:\program files\microsoft visual studio
8\vc\include\xutility 572
Error 3 error C4430: missing type specifier - int assumed. Note: C++
does not support default-int c:\program files\microsoft visual studio
8\vc\include\xutility 572
Error 4 error C2602: 'std::iterator_traits<_Iter>::iterator_category' is
not a member of a base class of 'std::iterator_traits<_Iter>' c:\program
files\microsoft visual studio 8\vc\include\xutility 572
Error 5 error C2868: 'std::iterator_traits<_Iter>::iterator_category' :
illegal syntax for using-declaration; expected qualified-name c:\program
files\microsoft visual studio 8\vc\include\xutility 572
Ideas, suggestions and (most of all) fixes welcome ...
Mar 3 '07 #1
4 4602
Bit Byte wrote:
I'm having problem compiling one of my projects with VS2005. The
problems arise with VS2005 (apparent?) inability to compile log4cpp.
What version of log4cpp are you using? I tried grabbing the latest code
(v0.3.5) from sourceforge and found only a VC6 workspace that contains a
bunch of broken projects - it doesn't look like anyone's done any VC++
maintenance on this project for a couple years, and even then they were
using a year out of date version of VC++..

-cd
Mar 4 '07 #2


Carl Daniel [VC++ MVP] wrote:
Bit Byte wrote:
>>I'm having problem compiling one of my projects with VS2005. The
problems arise with VS2005 (apparent?) inability to compile log4cpp.


What version of log4cpp are you using? I tried grabbing the latest code
(v0.3.5) from sourceforge and found only a VC6 workspace that contains a
bunch of broken projects - it doesn't look like anyone's done any VC++
maintenance on this project for a couple years, and even then they were
using a year out of date version of VC++..

-cd

Hi Carl, I'm using v1.0.2 - please see http://log4cplus.sourceforge.net/
Yes, I agree dev has kinda halted on this (last fix was in '04) - but I
have a lot of other code using the log4cpp dll and it would be a
nightmare to strip it out and use another library ...

Cheers
Mar 4 '07 #3
Bit Byte wrote:
Carl Daniel [VC++ MVP] wrote:
>Bit Byte wrote:
>>I'm having problem compiling one of my projects with VS2005. The
problems arise with VS2005 (apparent?) inability to compile log4cpp.


What version of log4cpp are you using? I tried grabbing the latest
code (v0.3.5) from sourceforge and found only a VC6 workspace that
contains a bunch of broken projects - it doesn't look like anyone's
done any VC++ maintenance on this project for a couple years, and
even then they were using a year out of date version of VC++..

-cd


Hi Carl, I'm using v1.0.2 - please see
http://log4cplus.sourceforge.net/ Yes, I agree dev has kinda halted
on this (last fix was in '04) - but I have a lot of other code using
the log4cpp dll and it would be a nightmare to strip it out and use
another library ...
OK, that version is much closer to working. I had to make 2 changes to get
it to compile with VC 2005:

replace all occurrences of __value with something else: __value is
recognized as a keyword by the VC2005 compiler (the authors of log4cpp
should not have used it - all identifiers containing two consequetive
underscores are reserved to the implementation).

For the specific error you're seeing, insert the following line of code into
\include\log4cplus\helpers\stringhelper.h, line 123:

typedef std::output_iterator_tag iterator_category;

I didn't try testing the library, but it builds with those two changes.

-cd
Mar 4 '07 #4


Carl Daniel [VC++ MVP] wrote:
Bit Byte wrote:
>>Carl Daniel [VC++ MVP] wrote:

>>>Bit Byte wrote:
I'm having problem compiling one of my projects with VS2005. The
problems arise with VS2005 (apparent?) inability to compile log4cpp.
What version of log4cpp are you using? I tried grabbing the latest
code (v0.3.5) from sourceforge and found only a VC6 workspace that
contains a bunch of broken projects - it doesn't look like anyone's
done any VC++ maintenance on this project for a couple years, and
even then they were using a year out of date version of VC++..

-cd


Hi Carl, I'm using v1.0.2 - please see
http://log4cplus.sourceforge.net/ Yes, I agree dev has kinda halted
on this (last fix was in '04) - but I have a lot of other code using
the log4cpp dll and it would be a nightmare to strip it out and use
another library ...


OK, that version is much closer to working. I had to make 2 changes to get
it to compile with VC 2005:

replace all occurrences of __value with something else: __value is
recognized as a keyword by the VC2005 compiler (the authors of log4cpp
should not have used it - all identifiers containing two consequetive
underscores are reserved to the implementation).

For the specific error you're seeing, insert the following line of code into
\include\log4cplus\helpers\stringhelper.h, line 123:

typedef std::output_iterator_tag iterator_category;

I didn't try testing the library, but it builds with those two changes.

-cd

Thanks for the quick response Carl - I'll make the modifications now and
then test it later with my apps - I'll let you know how it goes.
Mar 4 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Inga2005 | last post by:
I have developed an web site in VS2005 but I can't build a release version since the option is missing in the configuration manager. The second thing is that there isn't a bin folder placed in my...
11
by: CMM | last post by:
I am so disappointed in VS2005. The "little things" wrong with it are just mind-boggling. Boy, I'll be so mad if I have to wait a year for the ".1" release that fixes all the bugs in this obvious...
2
by: Tammam | last post by:
Hello All, I had a solution composed of managed/unmanaged C++ , C# projects. It builds with no problem in VS2003 but after converting the solution to VS2005 i get many linking errors such as...
3
by: zhouchengly | last post by:
I test a stl sort function in vs2005 and find the efficiency of debug to release version is about 1000:1, it suprise me and I'm curious what cause it.
12
by: docschnipp | last post by:
I have moved a project from VS2003 to VS2005 and now all references point to ..NET2.0 libs. How can I change this back to 1.1, but still use VS2005? I need this for compatibility reasons. ...
3
by: 2b|!2b==? | last post by:
I am working on a largish project (about 40 modules). I have created a solution that builds all 40 modules/projects. However, I want to be able to automate the build process - and kick it off...
3
by: Chris288 | last post by:
Hi, I have a problem where our app when compiled in VS2005 runs about 50% the speed it attains in VS2003. This is an unmanaged C++ app. I have tried most combinations of the optimization and...
3
by: Rotsey | last post by:
I do not have a configuration selector on my vs screen Is this due to the fact that I selcted VB as language when I installed vs??? How do I bring up the configuration selector I cannot see...
6
by: =?Utf-8?B?SGFycnkgVg==?= | last post by:
I wrote a C# Windows app using VS2003 to read selected text files and write the data to 3 tables in an Access database. After "upgrading" to VS2005, I tried to add a feature and rebuild - what a...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.