iveney / pwntcha

PWNtcha stands for "Pretend We’re Not a Turing Computer but a Human Antagonist", as well as PWN capTCHAs. This project’s goal is to demonstrate the inefficiency of many captcha implementations. This is a fork of Sam Hocevar's original version.
http://caca.zoy.org/wiki/PWNtcha
Other
83 stars 28 forks source link

gcc parameter order #7

Open danoctavian opened 12 years ago

danoctavian commented 12 years ago

new gcc versions require a different parameter order. The linking flags are misplaced in your generated makefiles.

This will fail gcc sdl-config --cflags -Wall -O6 -g -O2 sdl-config --libs -lSDL_image -o pwntcha pwntcha-main.o pwntcha-filter.o pwntcha-font.o pwntcha-image.o pwntcha-easter-eggs.o pwntcha-test.o authimage/libdecoder.a clubic/libdecoder.a java/libdecoder.a linuxfr/libdecoder.a livejournal/libdecoder.a lmt/libdecoder.a paypal/libdecoder.a phpbb/libdecoder.a scode/libdecoder.a slashdot/libdecoder.a ticketmaster/libdecoder.a tickets/libdecoder.a vbulletin/libdecoder.a xanga/libdecoder.a

They should be put at the end like so:

cc sdl-config --cflags -Wall -O6 -g -O2 -o pwntcha pwntcha-main.o pwntcha-filter.o pwntcha-font.o pwntcha-image.o pwntcha-easter-eggs.o pwntcha-test.o authimage/libdecoder.a clubic/libdecoder.a java/libdecoder.a linuxfr/libdecoder.a livejournal/libdecoder.a lmt/libdecoder.a paypal/libdecoder.a phpbb/libdecoder.a scode/libdecoder.a slashdot/libdecoder.a ticketmaster/libdecoder.a tickets/libdecoder.a vbulletin/libdecoder.a xanga/libdecoder.a sdl-config --libs -lSDL_image

s35300792001 commented 11 years ago

Which file should I modify metioned above? I can't successfully execute the make command.

mathetian commented 10 years ago

Great. In my computer(ubuntu 12.04), I leave imaging_ldflags = empty and modify LIBS = -lm -lSDL_image -lSDL. Everything is great.