Problems building duchain on win32

Andreas Pakulat apaku at
Sat Mar 29 09:01:45 UTC 2008

On 28.03.08 23:01:53, David Nolden wrote:
> On Friday 28 March 2008 22:42:51 Andreas Pakulat wrote:
> > Interesting, yes that does make some sense as the function is not
> > visible outside the library... Can you put the function into the header?
> That would be the moment that mingw would be right in saying "was defined 
> multiple times", because it would be defined in every file that includes 
> templatedeclaration.h ;)
> > those export macro's evaluate to declspec(dllimport) when the file is
> > #included in a c++ file outside the same library and they evaluate to
> > declspec(dllexport) in the case that the file is included or compiled in
> > the library it belongs to.
> >
> > The question is why mingw thinks the function is defined twice.  And I
> > really have no good idea either :(
> I really don't have a clue. But maybe it's not right using the 
> CPPDUCHAIN_EXPORT there, but instead only "export" or something. It might 
> need some experimentation with mingw.

:( I guess this has to wait then until I can get my hands on a win32
machine again.


You will be awarded the Nobel Peace Prize... posthumously.

More information about the KDevelop-devel mailing list