From e7e31867ed9857b17dbb4aa4e6cb06c93234be4f Mon Sep 17 00:00:00 2001 From: Harald Fernengel Date: Wed, 12 Aug 2009 14:53:44 +0200 Subject: extern the Qt helper functions with Q_CORE_EXPORT The q* helper functions are declared as Q_CORE_EXPORT, so they have to be extern'd like that as well. This fixes a problem where adding a resource to a project would result in undefined symbols on some RVCT versions. Reviewed-by: Andy Shaw --- src/tools/rcc/rcc.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tools/rcc/rcc.cpp b/src/tools/rcc/rcc.cpp index 3b877ae..1d22dec 100644 --- a/src/tools/rcc/rcc.cpp +++ b/src/tools/rcc/rcc.cpp @@ -894,10 +894,10 @@ bool RCCResourceLibrary::writeInitializer() if (m_useNameSpace) writeString("QT_BEGIN_NAMESPACE\n\n"); if (m_root) { - writeString("extern bool qRegisterResourceData\n " + writeString("extern Q_CORE_EXPORT bool qRegisterResourceData\n " "(int, const unsigned char *, " "const unsigned char *, const unsigned char *);\n\n"); - writeString("extern bool qUnregisterResourceData\n " + writeString("extern Q_CORE_EXPORT bool qUnregisterResourceData\n " "(int, const unsigned char *, " "const unsigned char *, const unsigned char *);\n\n"); } -- cgit v0.12