|
|
#1 |
|
Prospect
Join Date: Sep 2005
Posts: 2
|
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. */ | | int | main () | { | | ; | return 0; | } configure:2347: error: C compiler cannot create executables |
|
|
|
|
|
#2 | |||||||||||||||||||||||
|
Site Admin
Join Date: Jan 2002
Location: Montreal
Posts: 31,938
|
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.
__________________
hayne.net/macosx.html |
|||||||||||||||||||||||
|
|
|
|
|
#3 |
|
Prospect
Join Date: Nov 2006
Posts: 19
|
You are trying to like a static binary ...
Hi,
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 ... --link-static Try something like --link-dynamic or --link-static=no typically "configure --help" will give a good overview about basic config options. Best of luck, I think you'll take it from here alone. Cheers, Michael |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|