[질문] Objective-C

익명 사용자의 이미지

안녕하세요

요즘 Objective-C를 공부하고있는데요
컴파일 다 끝나고 링크하는 부분에서 레퍼런스를 못 찾겠다고 나오는군요
이를 어떻게 해결하나요?
음.....질문이 너무 무성의하군요 죄송
상세하게 설명 드리죠
GCC3.0을 쓰고있구요 라이브러리 봐도 libobjc.?? 가 있습니다
그리고 헤더파일도 있구요...
물론 컴파일을 잘 되지만 링크부분에서 -lobjc 인자를 줬는데도 레퍼런스를 못 찾겠다고
나오는군요
라이브러리를 설치해야 한다면 어디서 라이브러리를 받아야 하는지 알려주시면
감사하겠습니다

익명 사용자의 이미지

필요한 라이브러리를 링크 못한것일수도 있겠고..
아니면 다른 문제일수도 있겠군요.
에러 메세지와 소스를 볼 수 있으면 혹 도움이 되어드릴수 있을지 모르겠습니
다. (그런데 오브젝티브 C는 안본지 한참되어서 자신이 없군요..)

조금더 구체적으로 알려주시겠습니까?

익명 사용자의 이미지

안녕하세요

에러 메세지 입니다

gcc -Wall -lobjc -o test myPrint.o myExample.o
myPrint.o In function `_GLOBAL__I_myPrint.mE4Cvhd'
myPrint.o(.text+0xaf) undefined reference to `__objc_exec_class'
myPrint.o(.data+0x110) undefined reference to `__objc_class_name_Object'
myExample.o In function `main'
myExample.o(.text+0x20) undefined reference to `objc_get_class'
myExample.o(.text+0x2b) undefined reference to `objc_msg_lookup'
myExample.o(.text+0x41) undefined reference to `objc_msg_lookup'
myExample.o(.text+0x6a) undefined reference to `objc_msg_lookup'
myExample.o In function `_GLOBAL__I_main'
myExample.o(.text+0x9f) undefined reference to `__objc_exec_class'
collect2 ld returned 1 exit status

이런 에러가 납니다
음......더 자세히는 어떤걸 말씀드려야할지....
일단 문법상으론 문제가 없습니다........ㅡㅡ;;
아참 그리고 배포본은 와우7.1이고
GCC 3.0.2 로 업글했고 의존성때문에 2.96 은 지우지 못 했습니다
라이브러리 패스나 기타 등등은 잡아줬구요
다른 프로그램은 잘 컴팔되고 실행되는걸로 봐서는 잘 깔린듯
음.....근데 ftp 들어가서 보니까 Objective-C를 하려면 2.9x 대의 버젼을 쓰라는것 같던데
그리고 GNUstep 가서 라이브러리 받으려니 96년도 것들이 ㅡㅡ;;
아............개발자용 패키지는 어디 없나..........

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.