Author: jim
Date: Thu Jul  5 14:04:55 2018
New Revision: 1835139

URL: http://svn.apache.org/viewvc?rev=1835139&view=rev
Log:
This is a start in the right direction... Now try to track down why we
are getting these undefined symbol errors:

Undefined symbols for architecture x86_64:
  "std::string::find(char const*, unsigned long, unsigned long) const", 
referenced from:
      Hunspell::spellml(char***, char const*) in libhunspell-1.3.a(hunspell.o)
  "std::string::_Rep::_M_destroy(std::allocator<char> const&)", referenced from:
      Hunspell::spellml(char***, char const*) in libhunspell-1.3.a(hunspell.o)
  "std::string::_Rep::_S_empty_rep_storage", referenced from:
      Hunspell::spellml(char***, char const*) in libhunspell-1.3.a(hunspell.o)
  "std::string::append(char const*, unsigned long)", referenced from:
      Hunspell::spellml(char***, char const*) in libhunspell-1.3.a(hunspell.o)
  "std::string::append(std::string const&)", referenced from:
      Hunspell::spellml(char***, char const*) in libhunspell-1.3.a(hunspell.o)
  "std::string::replace(unsigned long, unsigned long, char const*, unsigned 
long)", referenced from:
      Hunspell::spellml(char***, char const*) in libhunspell-1.3.a(hunspell.o)
  "std::basic_string<char, std::char_traits<char>, std::allocator<char> 
>::basic_string(char const*, std::allocator<char> const&)", referenced from:
      Hunspell::spellml(char***, char const*) in libhunspell-1.3.a(hunspell.o)
  "std::__throw_length_error(char const*)", referenced from:
      std::vector<affentry, std::allocator<affentry> 
>::_M_fill_insert(__gnu_cxx::__normal_iterator<affentry*, std::vector<affentry, 
std::allocator<affentry> > >, unsigned long, affentry const&) in 
libhunspell-1.3.a(affixmgr.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [/Users/jim/src/asf/AOO420/main/solenv/gbuild/LinkTarget.mk:251: 
/Users/jim/src/asf/AOO420/main/solver/420/unxmaccx.pro/workdir/LinkTarget/Library/libspell.uno.dylib]
 Error 1
dmake:  Error code 2, while making 'all'


Modified:
    openoffice/trunk/main/lingucomponent/Library_MacOSXSpell.mk
    
openoffice/trunk/main/lingucomponent/source/spellcheck/macosxspell/macspellimp.hxx

Modified: openoffice/trunk/main/lingucomponent/Library_MacOSXSpell.mk
URL: 
http://svn.apache.org/viewvc/openoffice/trunk/main/lingucomponent/Library_MacOSXSpell.mk?rev=1835139&r1=1835138&r2=1835139&view=diff
==============================================================================
--- openoffice/trunk/main/lingucomponent/Library_MacOSXSpell.mk (original)
+++ openoffice/trunk/main/lingucomponent/Library_MacOSXSpell.mk Thu Jul  5 
14:04:55 2018
@@ -56,6 +56,8 @@ $(eval $(call gb_Library_add_linked_libs
 
 $(eval $(call gb_Library_add_libs,MacOSXSpell,\
        -framework Cocoa \
+       -framework Carbon \
+       -framework CoreFoundation \
 ))
 
 $(eval $(call gb_Library_add_exception_objects,MacOSXSpell,\
@@ -63,5 +65,9 @@ $(eval $(call gb_Library_add_exception_o
        lingucomponent/source/spellcheck/macosxspell/macspellimp \
 ))
 
+$(eval $(call gb_Library_add_cxxflags,MacOSXSpell,\
+    -x -objective-c++ -stdlib=libc++ \
+))
+
 # vim: set noet sw=4 ts=4:
 

Modified: 
openoffice/trunk/main/lingucomponent/source/spellcheck/macosxspell/macspellimp.hxx
URL: 
http://svn.apache.org/viewvc/openoffice/trunk/main/lingucomponent/source/spellcheck/macosxspell/macspellimp.hxx?rev=1835139&r1=1835138&r2=1835139&view=diff
==============================================================================
--- 
openoffice/trunk/main/lingucomponent/source/spellcheck/macosxspell/macspellimp.hxx
 (original)
+++ 
openoffice/trunk/main/lingucomponent/source/spellcheck/macosxspell/macspellimp.hxx
 Thu Jul  5 14:04:55 2018
@@ -31,7 +31,9 @@
 #ifdef MACOSX
 #include <premac.h>
 #include <Carbon/Carbon.h>
+#include <CoreFoundation/CoreFoundation.h>
 #import <Cocoa/Cocoa.h>
+#import <Foundation/Foundation.h>
 #include <postmac.h>
 #endif
 #include <com/sun/star/lang/XComponent.hpp>


Reply via email to