Click here to Skip to main content
12,296,162 members (65,596 online)

Welcome to the Lounge

   

For lazing about and discussing anything in a software developer's life that takes your fancy except programming questions.

Technical discussions are encouraged, but click here to ask your programming question.

The Lounge is rated PG. If you're about to post something you wouldn't want your kid sister to read then don't post it. No flame wars, no abusive conduct, no programming questions and please don't post ads.
 
GeneralRe: Crank this one up! Pin
JimmyRopes16-Mar-14 2:20
memberJimmyRopes16-Mar-14 2:20 
GeneralRe: Crank this one up! Pin
Mike Hankey16-Mar-14 3:06
memberMike Hankey16-Mar-14 3:06 
GeneralRe: Crank this one up! Pin
Mike Hankey16-Mar-14 3:04
memberMike Hankey16-Mar-14 3:04 
GeneralRe: Crank this one up! Pin
Keith Barrow16-Mar-14 8:05
mentorKeith Barrow16-Mar-14 8:05 
GeneralRe: Crank this one up! Pin
Ravi Bhavnani16-Mar-14 8:09
professionalRavi Bhavnani16-Mar-14 8:09 
GeneralRe: Crank this one up! Pin
racketeer21-Mar-14 1:45
memberracketeer21-Mar-14 1:45 
GeneralIf your name is Pral Pral or Kaleem Pin
Christian Graus15-Mar-14 20:01
protectorChristian Graus15-Mar-14 20:01 
GeneralRe: If your name is Pral Pral or Kaleem Pin
OriginalGriff15-Mar-14 20:45
protectorOriginalGriff15-Mar-14 20:45 
General1000 years in the slammer ... we got a pill for that Pin
BillWoodruff15-Mar-14 16:45
memberBillWoodruff15-Mar-14 16:45 
GeneralRe: 1000 years in the slammer ... we got a pill for that Pin
OriginalGriff15-Mar-14 22:22
protectorOriginalGriff15-Mar-14 22:22 
GeneralRe: 1000 years in the slammer ... we got a pill for that Pin
Mike Hankey16-Mar-14 3:09
memberMike Hankey16-Mar-14 3:09 
GeneralRe: 1000 years in the slammer ... we got a pill for that Pin
Forogar 16-Mar-14 3:38
member Forogar 16-Mar-14 3:38 
GeneralRe: 1000 years in the slammer ... we got a pill for that Pin
Mike Hankey16-Mar-14 6:25
memberMike Hankey16-Mar-14 6:25 
Generallog4cxx - The story continues Pin
Marco Bertschi15-Mar-14 13:32
protectorMarco Bertschi15-Mar-14 13:32 
Regulars may remember my previous rant about log4cxx - I am still confident that it is a c@rap tool, and should be avoided due to Apache's poor maintenance.

Whatsoever, in the mean time I found out that it is in fact a purely VS-Compiler related problem.
Many many tutorials on teh internetz have suggested to avoid the compiler errors by moving certain macros out of certain classes - Which would've needed a lot of time which I currently don't have at my hands. After a looong google search, I came to a page[^] which suggested to only modify the defines in log4cxx.h a bit, and oh wonder - If you compile it with the "pointer and list definition macros for all other cases", it builds with no error. Weird, and I don't get what I did, so if anyone could care to explain I'd be happy to listen carefully.
Still, I don't accuse Microsoft for causing the error, from my POV it is Apache who did a poor job maintainig their source.

#if defined(_MSC_VER) && _MSC_VER < 1700 && !defined(LOG4CXX_STATIC) && defined(LOG4CXX)
#define LOG4CXX_PTR_DEF(T) \
template class LOG4CXX_EXPORT log4cxx::helpers::ObjectPtrT<T>; \
typedef log4cxx::helpers::ObjectPtrT<T> T##Ptr
#define LOG4CXX_LIST_DEF(N, T) \
template class LOG4CXX_EXPORT std::allocator<T>; \
template class LOG4CXX_EXPORT std::vector<T>; \
typedef std::vector<T> N
//
//   pointer and list definition macros when linking with DLL using VC
//
#elif defined(_MSC_VER) && _MSC_VER < 1700 && !defined(LOG4CXX_STATIC)
#define LOG4CXX_PTR_DEF(T) \
extern template class LOG4CXX_EXPORT log4cxx::helpers::ObjectPtrT<T>; \
typedef log4cxx::helpers::ObjectPtrT<T> T##Ptr
#define LOG4CXX_LIST_DEF(N, T) \
extern template class LOG4CXX_EXPORT std::allocator<T>; \
extern template class LOG4CXX_EXPORT std::vector<T>; \
typedef std::vector<T> N
//
//   pointer and list definition macros for all other cases
//
#else
#define LOG4CXX_PTR_DEF(T) typedef log4cxx::helpers::ObjectPtrT<T> T##Ptr
#define LOG4CXX_LIST_DEF(N, T) typedef std::vector<T> N
#endif
I will never again mention that Dalek Dave was the poster of the One Millionth Lounge Post, nor that it was complete drivel.

GeneralRe: log4cxx - The story continues Pin
Chris Maunder15-Mar-14 14:41
adminChris Maunder15-Mar-14 14:41 
GeneralRe: log4cxx - The story continues Pin
Marco Bertschi15-Mar-14 15:11
protectorMarco Bertschi15-Mar-14 15:11 
GeneralRe: log4cxx - The story continues Pin
Dan Neely17-Mar-14 3:07
memberDan Neely17-Mar-14 3:07 
GeneralRe: log4cxx - The story continues Pin
Marco Bertschi17-Mar-14 3:17
protectorMarco Bertschi17-Mar-14 3:17 
GeneralRe: log4cxx - The story continues Pin
Brisingr Aerowing15-Mar-14 15:08
professionalBrisingr Aerowing15-Mar-14 15:08 
GeneralRe: log4cxx - The story continues Pin
Marco Bertschi15-Mar-14 15:14
protectorMarco Bertschi15-Mar-14 15:14 
GeneralRe: log4cxx - The story continues Pin
Brisingr Aerowing15-Mar-14 16:04
professionalBrisingr Aerowing15-Mar-14 16:04 
GeneralRe: log4cxx - The story continues Pin
Espen Harlinn16-Mar-14 10:09
mentorEspen Harlinn16-Mar-14 10:09 
GeneralRe: log4cxx - The story continues Pin
Marco Bertschi16-Mar-14 22:03
protectorMarco Bertschi16-Mar-14 22:03 
GeneralRe: log4cxx - The story continues Pin
Espen Harlinn17-Mar-14 4:01
mentorEspen Harlinn17-Mar-14 4:01 
GeneralRe: log4cxx - The story continues Pin
Marco Bertschi17-Mar-14 6:22
protectorMarco Bertschi17-Mar-14 6:22 
GeneralNo more exact member count Pin
CarefulCoder15-Mar-14 13:00
professionalCarefulCoder15-Mar-14 13:00 
GeneralRe: No more exact member count Pin
Chris Maunder15-Mar-14 13:29
adminChris Maunder15-Mar-14 13:29 
GeneralRe: No more exact member count Pin
Dalek Dave15-Mar-14 13:34
memberDalek Dave15-Mar-14 13:34 
GeneralRe: No more exact member count Pin
Chris Maunder15-Mar-14 13:38
adminChris Maunder15-Mar-14 13:38 
GeneralRe: No more exact member count Pin
Dalek Dave15-Mar-14 13:49
memberDalek Dave15-Mar-14 13:49 
GeneralRe: No more exact member count Pin
Brisingr Aerowing15-Mar-14 15:12
professionalBrisingr Aerowing15-Mar-14 15:12 
GeneralRe: No more exact member count Pin
JimmyRopes16-Mar-14 2:17
memberJimmyRopes16-Mar-14 2:17 
GeneralRe: No more exact member count Pin
PIEBALDconsult15-Mar-14 15:58
memberPIEBALDconsult15-Mar-14 15:58 
GeneralRe: No more exact member count Pin
PIEBALDconsult15-Mar-14 15:54
memberPIEBALDconsult15-Mar-14 15:54 
GeneralRe: No more exact member count Pin
H.Brydon15-Mar-14 16:28
mvpH.Brydon15-Mar-14 16:28 
GeneralRe: No more exact member count Pin
Forogar 16-Mar-14 3:42
member Forogar 16-Mar-14 3:42 
GeneralRe: No more exact member count Pin
JimmyRopes15-Mar-14 17:27
memberJimmyRopes15-Mar-14 17:27 
GeneralRe: No more exact member count Pin
Mike-MadBadger15-Mar-14 23:48
memberMike-MadBadger15-Mar-14 23:48 
GeneralRe: No more exact member count Pin
CarefulCoder15-Mar-14 13:43
professionalCarefulCoder15-Mar-14 13:43 
GeneralRe: No more exact member count Pin
JimmyRopes15-Mar-14 17:21
memberJimmyRopes15-Mar-14 17:21 
GeneralRe: No more exact member count Pin
Madhava Verma Dantuluri15-Mar-14 22:09
memberMadhava Verma Dantuluri15-Mar-14 22:09 
GeneralRe: No more exact member count Pin
JimmyRopes16-Mar-14 2:15
memberJimmyRopes16-Mar-14 2:15 
GeneralRe: No more exact member count Pin
Bassam Abdul-Baki18-Mar-14 4:13
professionalBassam Abdul-Baki18-Mar-14 4:13 
GeneralChildren... Pin
Dalek Dave15-Mar-14 11:24
memberDalek Dave15-Mar-14 11:24 
GeneralRe: Children... Pin
s_mon15-Mar-14 20:22
members_mon15-Mar-14 20:22 
GeneralAnother task done... PinPopular
s_mon15-Mar-14 7:15
members_mon15-Mar-14 7:15 
GeneralRe: Another task done... Pin
David C# Hobbyist.15-Mar-14 8:05
professionalDavid C# Hobbyist.15-Mar-14 8:05 
GeneralRe: Another task done... Pin
s_mon15-Mar-14 9:18
members_mon15-Mar-14 9:18 
GeneralRe: Another task done... PinPopular
Chris Maunder15-Mar-14 8:12
adminChris Maunder15-Mar-14 8:12 
GeneralRe: Another task done... Pin
s_mon15-Mar-14 9:20
members_mon15-Mar-14 9:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web02 | 2.8.160525.2 | Last Updated 27 May 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid