[SDL] Problem building sample program
Albert Zeyer
albert.zeyer at rwth-aachen.de
Wed Mar 5 01:57:58 PST 2008
Ah I see the error.
The ld which is used here is not the correct one. It seems you have
another ld installed in /usr/local/bin (where normally only manually
installed applications go into). Try to figure out which ld this is and
perhaps rename or delete it.
For a temporary solution, you can look where you have the correct ld
(probably at the same place where your gcc is). Set this path in your
PATH variable at the first position.
Probably like this:
export PATH=/usr/bin:$PATH
Am Mittwoch, den 05.03.2008, 22:51 +1300 schrieb David Annett:
> That fails because SDL.h is not found but adding it include path gives
> the same error:
>
> david at rabota:~/Dev/temp/test$ gcc -I/usr/include/SDL testver.c -lSDL -o
> testver
> /usr/local/bin/ld: unrecognized option '--hash-style=both'
> /usr/local/bin/ld: use the --help option for usage information
> collect2: ld returned 1 exit status
>
>
> Albert Zeyer wrote:
> > Am Mittwoch, den 05.03.2008, 22:21 +1300 schrieb David Annett:
> >
> >> Any suggestions how get it working would be welcomed!
> >>
> >>
> >
> > Try to compile it manually:
> >
> > gcc testver.c -lSDL -o testver
> >
> >
> >
> > _______________________________________________
> > SDL mailing list
> > SDL at lists.libsdl.org
> > http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
> >
> >
>
More information about the SDL
mailing list