aewarnick
February 28th, 2006, 04:59 PM
I'm trying to make a batch file to build libbz2.a. Here is what I have so far, but I must be doing something wrong because when I try to link to libbz2.a I get a fatal error from the linker and it is killed.
"..\0_CodeBlocks\bin\gcc" -w -O1 -O2 -O3 -Os -c blocksort.c
"..\0_CodeBlocks\bin\gcc" -w -O1 -O2 -O3 -Os -c huffman.c
"..\0_CodeBlocks\bin\gcc" -w -O1 -O2 -O3 -Os -c crctable.c
"..\0_CodeBlocks\bin\gcc" -w -O1 -O2 -O3 -Os -c randtable.c
"..\0_CodeBlocks\bin\gcc" -w -O1 -O2 -O3 -Os -c compress.c
"..\0_CodeBlocks\bin\gcc" -w -O1 -O2 -O3 -Os -c decompress.c
"..\0_CodeBlocks\bin\gcc" -w -O1 -O2 -O3 -Os -c bzlib.c
"..\0_CodeBlocks\bin\gcc" -w -O1 -O2 -O3 -Os -c bzip2.c
"..\0_CodeBlocks\bin\gcc" -w -O1 -O2 -O3 -Os -c bzip2recover.c
"..\0_CodeBlocks\bin\gcc" -w -O1 -O2 -O3 -Os blocksort.o huffman.o crctable.o randtable.o compress.o decompress.o bzlib.o bzip2.o -o "Release\libbz2.a"
pause
"..\0_CodeBlocks\bin\gcc" -w -O1 -O2 -O3 -Os -c blocksort.c
"..\0_CodeBlocks\bin\gcc" -w -O1 -O2 -O3 -Os -c huffman.c
"..\0_CodeBlocks\bin\gcc" -w -O1 -O2 -O3 -Os -c crctable.c
"..\0_CodeBlocks\bin\gcc" -w -O1 -O2 -O3 -Os -c randtable.c
"..\0_CodeBlocks\bin\gcc" -w -O1 -O2 -O3 -Os -c compress.c
"..\0_CodeBlocks\bin\gcc" -w -O1 -O2 -O3 -Os -c decompress.c
"..\0_CodeBlocks\bin\gcc" -w -O1 -O2 -O3 -Os -c bzlib.c
"..\0_CodeBlocks\bin\gcc" -w -O1 -O2 -O3 -Os -c bzip2.c
"..\0_CodeBlocks\bin\gcc" -w -O1 -O2 -O3 -Os -c bzip2recover.c
"..\0_CodeBlocks\bin\gcc" -w -O1 -O2 -O3 -Os blocksort.o huffman.o crctable.o randtable.o compress.o decompress.o bzlib.o bzip2.o -o "Release\libbz2.a"
pause