Menu

#110 Resolving build troubles within BCB5

open
nobody
5
2007-01-07
2007-01-07
Alexander
No

Hello folks,

I've discovered some incosistences while was building log4cpp in Builder 5. The troubles and solutions for them are posted here. I know you, guys, are not taking them very fast :) Probably solved troubles will be included quicker.

1. Bug: BCB5 can't find 'ctime' and 'cstdio' libraries.
Solution:
Create bcb5\log4cpp\include\
Copy gags of ctime and cstdio to bcb5\log4cpp\include\
Each gag contains only one line like
#include <time.h>
#include <stdio.h>
Update project file so it contains dir ./include in INCLUDE list also.

2. SimpleConfigurator.cpp,
replace #if WIN32 to #ifdef WIN32

3. Add to log4cpp.bpr and log4cpp.bpf and .mak
the following items:
AbortAppender.obj
AbortAppender.cpp
PropertyConfiguratorImpl.obj

4. log4cpp.bpf
is broken (see to the bottom of the project file)

5. Add
#include <ctime>
to MSThreads.cpp

6. Add WIN32 definition to the list of definitions in log4cpp.bpr
<USERDEFINES value="_DEBUG;LOG4CPP_HAS_DLL;LOG4CPP_BUILD_DLL;WIN32"/>

This request also covers two last bugs from the [ 1629365 ] Several troubles when build in BCB5

Thanks,
Alexander.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.