Problems building duchain on win32

David Nolden zwabel at googlemail.com
Fri Mar 28 22:01:53 UTC 2008


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.

Greetings, David




More information about the KDevelop-devel mailing list