List Info

Thread: compile error with MSVC 2003




compile error with MSVC 2003
user name
2007-05-17 09:42:25
MSVC 2003, today's revision

F:kde-downtmpstrigisrcstreamsfileinputstream.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	(revis
ion 643297)
+++
F:/kde-downtmp/strigi/src/streams/fileinputstream.cpp	(revis
ion 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 <<

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )