[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    [strigi] compile error with MSVC 2003
From:       "dukju ahn" <dukjuahn () gmail ! com>
Date:       2007-05-17 14:42:25
Message-ID: 9119cdb30705170742o5ff741fbq881c755c2bf85424 () mail ! gmail ! com
[Download RAW message or body]

MSVC 2003, today's revision

F:\kde-downtmp\strigi\src\streams\fileinputstream.cpp(27) : error C2201: 'Strigi
::FileInputStream::defaultBufferSize' : should have external link to
export or import

Note that the error message is translated into english by me.
The problematic line was introduced by below revision with below commit msg.
log message: found a way to export static data inside classes with msvc.
Unlike the log message, it was the reason of error in MSVC2003

Index: F:/kde-downtmp/strigi/src/streams/fileinputstream.cpp
===================================================================
--- F:/kde-downtmp/strigi/src/streams/fileinputstream.cpp	(revision 643297)
+++ F:/kde-downtmp/strigi/src/streams/fileinputstream.cpp	(revision 643298)

@@ -23,6 +23,8 @@

 #include <cstring>
 using namespace jstreams;

+STREAMS_EXPORT const int32_t FileInputStream::defaultBufferSize = 1048576;
+
 FileInputStream::FileInputStream(const char *filepath, int32_t buffersize) {
     // try to open the file for reading
     file = fopen(filepath, "rb");
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic