mac os x 에서 gcc : ld: can't locate file for: -lcrt1.o 에러

jenix의 이미지

gcc 로 printf("Hello iBook!\n"); 만 출력하는 소스로

gcc 컴파일 테스트해보려고 했습니다만..

ld: can't locate file for: -lcrt1.o

와 같이 crt1.o 라이브러리가 없다고 컴파일이 안됩니다.

제가 설치했던 과정을 집어보면.

mac os x 설치 ( 10.3.2 버젼입니다. ) ( x11 도 설치 )

사실 위의 라이브러리는 기본으로 포함된거같은데..

mac os x 만 새로 설치했을 무렵에 /usr/lib 디렉토리에 보이질 않는군요.

xcode 설치후.. os x 업뎃 xcode 업뎃을 모두 해봐도 나오질 않습니다.

처음 사서 xcode 깔았을 시에도 crt1.o 이 없어서 컴파일이 안됬는데..

xcode 씨디에서 package 디렉에서 몇가지를 직접 다시 설치하다 보니

생겼었거든요..? 그런데.. 이번엔 영영 나타나질 않는군요 -.-;

mac os x 10.3 sdk 도 설치해봤는데.. 저 sdk 디렉토리의 usr/lib 에는 있더라구요.. 휴.. xcode 설치할적에 mac os x sdk 설치하면서 없으면 설치해줘야 하는거 같은데.. 어떻게 설치해야 할지 모르겠습니다.

구글이나 다 뒤져봐도..

essentials.pkg 가 잘못설치되는 경우가 있어서 그럴 수 있다고..

해서 다시 설치해 보아도.. 역시..

팬서도 3번이나 다시 설치했는데 정말 나타나질 않습니다 ㅠㅠ

http://forums.macosxhints.com/printthread.php?t=22352 <- 이 링크와
http://forums.macosxhints.com/showthread.php?t=21924 <- 이 링크가..

유일하게 보이는 단서더라구요..

#apple 채널의 jeijunn 님하고.. eregee 님이 많이 도와주셨는데도

해결이 안됩니다.. 도움좀 부탁드립니다 아시는분 ㅠㅠ..

이번엔 제대로 되면 문서화를 꼭 해놔야 할 듯 싶습니다..

monac의 이미지

Xcode만 설치되면 컴파일이 안될일이 없습니다. 무슨 SDK인지 몰라도 그런건 기본 컴파일하고 관계가 없어 보이구요. bsd subsystem을 종종 빠트리는 사람이 있는데 (MacOSX설치시 옵션) 그거도 hello world 프로그램하곤 관계가 없어 보이네요.

hello world 프로그램을어떻게 컴파일 하셨는지..혹시 -static 옵션을 주신거 아닌지 모르겠습니다. mac에서는 저 옵션이 지원안되요. 그거 주면 그렇게 cannot find crt1.o 에러가 나구요.

댓글 달기

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
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.