linking.m
上传用户:shenzhenrh
上传日期:2013-05-12
资源大小:2904k
文件大小:1k
源码类别:

信息检索与抽取

开发平台:

Unix_Linux

  1. /* Force linking of classes required by Objective C runtime.
  2.    Copyright (C) 1997 Free Software Foundation, Inc.
  3.    Contributed by Ovidiu Predescu (ovidiu@net-community.com).
  4. This file is part of GNU CC.
  5. GNU CC is free software; you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation; either version 2, or (at your option)
  8. any later version.
  9. GNU CC is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with GNU CC; see the file COPYING.  If not, write to
  15. the Free Software Foundation, 59 Temple Place - Suite 330,
  16. Boston, MA 02111-1307, USA.  */
  17. /* As a special exception, if you link this library with files compiled with
  18.    GCC to produce an executable, this does not cause the resulting executable
  19.    to be covered by the GNU General Public License. This exception does not
  20.    however invalidate any other reasons why the executable file might be
  21.    covered by the GNU General Public License.  */
  22. #include <objc/Object.h>
  23. #include <objc/NXConstStr.h>
  24. /* Generate references to Object and NXConstanstString classes since they are
  25.    needed by the runtime system to run correctly. */
  26. void __objc_linking (void)
  27. {
  28.   [Object name];
  29.   [NXConstantString name];
  30. }