bug-commoncpp
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: StringTokenizer class and MSVC/Win32 platform


From: Pavel Tsekov
Subject: Re: StringTokenizer class and MSVC/Win32 platform
Date: Thu, 30 Aug 2001 09:31:10 +0200

OK, so I'll patch the header and try if everything is fine ... Btw what
are the preffered means to build CommonC++ on Win32 platform when using
MSVC ? I see there is a .dsp (project file) and also the configure
script says its trying to detect MSC... I built with the included .dsp
first but that doesnt help me to determine exactly which headers to use
in applications witch link against CommonC++ - there are .h files with
the same names both in common and win32 subdirs of the source tree.. I
tried to run the configure script under cygwin and hoped it will detect
the MSC but it didnt - I have all the needed environment variables which
refer to MSC set. Anyone who had experience please share you thoghts :)

David Sugar wrote:
> 
> The reason is most likely it was missed.  Yes, it should be exported.  I
> have thought about different ways of handling exports so that they don't
> interfere with other platforms which don't have this particular
> peculiarity, and never have had an entirely satisfactory answer that
> also works well with documentation generation tools.  The use of a
> __EXPORT macro in front of a class definition would mean the class was
> ignored from kdoc, for example.
> 
> The problem is if these are maintained seperately, with a seperate block
> for the exports, then one has to make sure they are all present and keep
> both in sync. Some of the newer tools will at least not crash doing
> documentation on code with such odd macros and things, so it might be
> better to put them with the defintions in the headers, at least as far
> as making sure none are missed.
> 
> Pavel Tsekov wrote:
> 
> >Hi there! :)
> >
> >I hope this time I'll get an answer :)
> >
> >I have a program initially written on linux which uses the
> >StringTokenizer class of the CommonC++ library. Now i tried to build the
> >program on Win32 using MSVC and I got an error message - the linker is
> >complainning that it cannot resolve the StringTokenizer and
> >StringTokenizer::iterator classes... In fact they arent exporeted like
> >the other classes in misc.h - look at this:
> >
> >#ifdef  __WIN32__
> >class __EXPORT MemPager;
> >class __EXPORT SharedMemPager;
> >class __EXPORT Keydata;
> >#endif
> >
> >The StringTokenizer and iterator arent included in this list - my
> >question is why is this ? :)
> >
> >Thanks for any answers - I hope that someone will reply to this messge
> >:)
> >
> >_______________________________________________
> >Bug-commoncpp mailing list
> >address@hidden
> >http://mail.gnu.org/mailman/listinfo/bug-commoncpp
> >



reply via email to

[Prev in Thread] Current Thread [Next in Thread]