Does not build on OSX #1

Closed
davidbanham opened this Issue Aug 16, 2012 · 4 comments

Projects

None yet

4 participants

@davidbanham

And I want an ASCII car so bad!

gcc -o gti -O2 -Wall -Wextra -static gti.c
gti.c: In function ‘main’:
gti.c:31: warning: unused parameter ‘argc’
ld: library not found for -lcrt0.o
collect2: ld returned 1 exit status
make: *** [gti] Error 1
Contributor

Removing the -static flag seem to resolve this issue. Can see no detrimental effects.

Alternatively you can change it to -Bstatic (via http://stackoverflow.com/a/11852900)

Both methods were successful for me.

Owner
rwos commented Aug 16, 2012

Thanks everyone - I merged coryalder's solution.

@rwos rwos closed this Aug 16, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment