Building a static library with MinGW

Hi everybody. I need to compile with MinGW. My problem is I can't use as.exe (archiver for c++ I think). Steps that I followed:

· Run a console command.
· cd to my folder.
· Execute c++ (MinGW Binary) with parameters:
c++ <all those cpp files on source folder> -c
· I notice a lot of .o (objects) appears on my folder.
· Then I try to execute as.exe:
as rc <all those objects that compiled on my folder>
· But errors like this appear there:
C:\Documents and Settings\lilEzek\Escritorio\ZekiBall\b2WorldCallbacks.o:6: Error: no hay tal instrucción: `_b2_maxpolygonvertices'
C:\Documents and Settings\lilEzek\Escritorio\ZekiBall\b2WorldCallbacks.o:6: Error: no hay tal instrucción: `_b2_maxproxies'
C:\Documents and Settings\lilEzek\Escritorio\ZekiBall\b2WorldCallbacks.o:6: Error: no hay tal instrucción: `_b2_maxpairs'
C:\Documents and Settings\lilEzek\Escritorio\ZekiBall\b2WorldCallbacks.o:6: Error: no hay tal instrucción: `_b2_linearslop'
C:\Documents and Settings\lilEzek\Escritorio\ZekiBall\b2WorldCallbacks.o:6: Error: no hay tal instrucción: `_b2_angularslop'
C:\Documents and Settings\lilEzek\Escritorio\ZekiBall\b2WorldCallbacks.o:6: Error: no hay tal instrucción: `_b2_toislop'

PD: no hay tal instrucción: means there is not that instruction.

Any Idea?

Original thread: https://box2d.org/forum/viewtopic.php?t=4158