mingw-cross-env-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Mingw-cross-env-list] fly


From: super pollo
Subject: [Mingw-cross-env-list] fly
Date: Sat, 30 Oct 2010 22:57:50 +0200

hi.

i am trying to compile this:

http://martin.gleeson.com/fly/dist/fly-2.0.1.tar.gz

can someone tell me how should i modify the Makefile to get a clean
build? (if possible)

i tried:

~/mingw$ i686-pc-mingw32-gcc -c fly.c -lm -lgd
`mingw-cross-env-2.15/usr/i686-pc-mingw32/bin/gdlib-config --cflags
--libs`

to compile the fly.o, then:

~/mingw$ i686-pc-mingw32-gcc -o fly fly.o fly.c -lm -lgd
`mingw-cross-env-2.15/usr/i686-pc-mingw32/bin/gdlib-config --cflags
--libs`

but:

/tmp/ccSZjlr0.o:fly.c:(.text+0x0): multiple definition of `_main'
fly.o:fly.c:(.text+0x0): first defined here
/tmp/ccSZjlr0.o:fly.c:(.text+0x3735): multiple definition of `_get_string'
fly.o:fly.c:(.text+0x3735): first defined here
/tmp/ccSZjlr0.o:fly.c:(.text+0x37dd): multiple definition of `_get_token'
fly.o:fly.c:(.text+0x37dd): first defined here
/tmp/ccSZjlr0.o:fly.c:(.text+0x448e): multiple definition of `_get_number'
fly.o:fly.c:(.text+0x448e): first defined here
/tmp/ccSZjlr0.o:fly.c:(.text+0x452d): multiple definition of `_get_colour'
fly.o:fly.c:(.text+0x452d): first defined here
/tmp/ccSZjlr0.o:fly.c:(.text+0x4699): multiple definition of `_copy_to_img'
fly.o:fly.c:(.text+0x4699): first defined here
/tmp/ccSZjlr0.o:fly.c:(.text+0x4a52): multiple definition of `_sync_input'
fly.o:fly.c:(.text+0x4a52): first defined here
/tmp/ccSZjlr0.o:fly.c:(.text+0x4ab6): multiple definition of `_process_args'
fly.o:fly.c:(.text+0x4ab6): first defined here
/tmp/ccSZjlr0.o:fly.c:(.text+0x4cfc): multiple definition of `_get_image'
fly.o:fly.c:(.text+0x4cfc): first defined here
/tmp/ccSZjlr0.o:fly.c:(.text+0x4f65): multiple definition of `_my_newmem'
fly.o:fly.c:(.text+0x4f65): first defined here
/tmp/ccSZjlr0.o:fly.c:(.text+0x4fbb): multiple definition of `_get_file'
fly.o:fly.c:(.text+0x4fbb): first defined here
/tmp/ccSZjlr0.o:fly.c:(.text+0x526c): multiple definition of `_swap'
fly.o:fly.c:(.text+0x526c): first defined here
/tmp/ccSZjlr0.o:fly.c:(.data+0x0): multiple definition of `_version'
fly.o:fly.c:(.data+0x0): first defined here
/tmp/ccSZjlr0.o:fly.c:(.data+0x4): multiple definition of `_usage'
fly.o:fly.c:(.data+0x4): first defined here
/tmp/ccSZjlr0.o:fly.c:(.data+0x8): multiple definition of `_help'
fly.o:fly.c:(.data+0x8): first defined here
/tmp/ccSZjlr0.o:fly.c:(.bss+0x0): multiple definition of `_finished'
fly.o:fly.c:(.bss+0x0): first defined here
/tmp/ccSZjlr0.o:fly.c:(.bss+0x4): multiple definition of `_done'
fly.o:fly.c:(.bss+0x4): first defined here
/tmp/ccSZjlr0.o:fly.c:(.bss+0x8): multiple definition of `_quiet'
fly.o:fly.c:(.bss+0x8): first defined here
/tmp/ccSZjlr0.o:fly.c:(.bss+0xc): multiple definition of `_end_of_line'
fly.o:fly.c:(.bss+0xc): first defined here
/tmp/ccSZjlr0.o:fly.c:(.bss+0x10): multiple definition of `_written_out'
fly.o:fly.c:(.bss+0x10): first defined here
/tmp/ccSZjlr0.o:fly.c:(.bss+0x14): multiple definition of `_type'
fly.o:fly.c:(.bss+0x14): first defined here
/tmp/ccSZjlr0.o:fly.c:(.data+0xc): multiple definition of `_imgtype'
fly.o:fly.c:(.data+0xc): first defined here
/tmp/ccSZjlr0.o:fly.c:(.data+0x10): multiple definition of `_line_number'
fly.o:fly.c:(.data+0x10): first defined here
/tmp/ccSZjlr0.o:fly.c:(.bss+0x18): multiple definition of `_input_file'
fly.o:fly.c:(.bss+0x18): first defined here
/tmp/ccSZjlr0.o:fly.c:(.bss+0x1c): multiple definition of `_output_file'
fly.o:fly.c:(.bss+0x1c): first defined here
fly.o:fly.c:(.text+0x512f): undefined reference to `_pipe'
fly.o:fly.c:(.text+0x516a): undefined reference to `_fork'
/tmp/ccSZjlr0.o:fly.c:(.text+0x512f): undefined reference to `_pipe'
/tmp/ccSZjlr0.o:fly.c:(.text+0x516a): undefined reference to `_fork'
collect2: ld returned 1 exit status

:-(

bye



reply via email to

[Prev in Thread] Current Thread [Next in Thread]