|11-03-2006, 09:36 AM||#1|
Join Date: Sep 2005
Problem Compiling with Gcc
I'm trying to compile Gambit, an open source game theory project and I'm receiveing the following error.
Any ideas on what this -lcrt1.o is? I admit inexperience in this sort of thing, but I have installed Apple's gcc compiler (Custom install of Developer Tools software and gcc 4).
Thanks in advance
gcc version 4.0.1 (Apple Computer, Inc. build 5367)
configure:2279: $? = 0
configure:2302: checking for C compiler default output file name
configure:2305: gcc conftest.c >&5
/usr/bin/ld: can't locate file for: -lcrt1.o
collect2: ld returned 1 exit status
configure:2308: $? = 1
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "gambit"
| #define VERSION "0.2006.01.20"
| /* end confdefs.h. */
| main ()
| return 0;
configure:2347: error: C compiler cannot create executables
|11-03-2006, 09:46 AM||#2|
Join Date: Jan 2002
I strongly suspect that the "custom" install is what is causing the problem. Unless you are an expert, you want to use the default install for Xcode - or at least only add things to the install, not remove things.
The file that is missing is the C run-time library.
|11-03-2006, 03:02 PM||#3|
Join Date: Nov 2006
You are trying to like a static binary ...
MacOSX does not seem to support true static linking.
I think -lcrt1.o is a missing part of object code which would allow the binary to be linked against a libc.a. Here the c code is just fine, but in the config script you might have chosen a default or option like ...
Try something like
typically "configure --help" will give a good overview about basic config options.
Best of luck, I think you'll take it from here alone.
|Display Modes||Rate This Thread|