[Bug 68] New: phobos recls_fileinfo_unix.cpp compile error
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Mar 23 15:19:17 PST 2006
http://d.puremagic.com/bugzilla/show_bug.cgi?id=68
Summary: phobos recls_fileinfo_unix.cpp compile error
Product: D
Version: 0.150
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Phobos
AssignedTo: bugzilla at digitalmars.com
ReportedBy: benoit at tionex.de
I get the following compile errors:
g++ -Wall -O4 -mcpu=i686 -DNDEBUG -DUNIX -D_M_IX86 -c -I. -I../stlsoft
-orecls_fileinfo_unix.o recls_fileinfo_unix.cpp
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
recls_fileinfo_unix.cpp: In function »const recls::recls_fileinfo_t*
recls::FileInfo_Allocate(size_t)«:
../stlsoft/stlsoft_null.h:194: Fehler: »stlsoft::NULL_v::NULL_v(const
stlsoft::NULL_v&)« ist privat
recls_fileinfo_unix.cpp:237: Fehler: in diesem Zusammenhang
recls_fileinfo_unix.cpp: In function »void recls::FileInfo_Release(const
recls::recls_fileinfo_t*)«:
../stlsoft/stlsoft_null.h:194: Fehler: »stlsoft::NULL_v::NULL_v(const
stlsoft::NULL_v&)« ist privat
recls_fileinfo_unix.cpp:256: Fehler: in diesem Zusammenhang
recls_fileinfo_unix.cpp: In function »recls::recls_rc_t
recls::FileInfo_Copy(const recls::recls_fileinfo_t*, const
recls::recls_fileinfo_t**)«:
../stlsoft/stlsoft_null.h:194: Fehler: »stlsoft::NULL_v::NULL_v(const
stlsoft::NULL_v&)« ist privat
recls_fileinfo_unix.cpp:277: Fehler: in diesem Zusammenhang
I made these changes, only to make it compile:
Index: phobos/etc/c/recls/recls_fileinfo_unix.cpp
===================================================================
--- phobos/etc/c/recls/recls_fileinfo_unix.cpp (Revision 15)
+++ phobos/etc/c/recls/recls_fileinfo_unix.cpp (Arbeitskopie)
@@ -234,7 +234,7 @@
counted_recls_info_t *ci =
static_cast<counted_recls_info_t*>(malloc(cb - sizeof(struct recls_fileinfo_t)
+ sizeof(struct counted_recls_info_t)));
recls_info_t info;
- if(NULL == ci)
+ if(0 == ci)
{
info = NULL;
}
@@ -253,7 +253,7 @@
RECLS_FNDECL(void) FileInfo_Release(recls_info_t fileInfo)
{
- if(NULL != fileInfo)
+ if(0 != fileInfo)
{
counted_recls_info_t *pci = counted_info_from_info(fileInfo);
@@ -274,7 +274,7 @@
{
recls_assert(NULL != pinfo);
- if(NULL != fileInfo)
+ if(0 != fileInfo)
{
counted_recls_info_t *pci = counted_info_from_info(fileInfo);
--
More information about the Digitalmars-d-bugs
mailing list