473,327 Members | 2,090 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,327 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 4603
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: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
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...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
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
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
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.