advertisement

Article:
  Developing in OpenGL Using Makefiles
Subject:   Getting an error...
Date:   2005-04-01 17:33:46
From:   Tankko
I get the following when I run "make"


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


the output from make is:



[tankko: ~/gltest]$ make
g++ -framework GLUT -framework OpenGL -Wall -o GlutExample -L"/System/Library/Frameworks/OpenGL.framework/Libraries" GlutExample.o -lGL -lGLU -lm -lobjc -lstdc++
ld: can't locate file for: -lcrt1.o
make: *** [GlutExample] Error 1
[tankko: ~/gltest]$


I do have XCode installed


Tankko

Full Threads Oldest First

Showing messages 1 through 1 of 1.

  • Getting an error...
    2005-04-03 06:08:36  markd2 [Reply | View]

    Do you have another gcc or g++ installed, such as via fink? I've seen this -lcrtl.o error when the g++ being run from /usr/bin is looking for libraries in /usr/local/lib.