Problem compiling with mingw

Ed Keith <[email protected]> Tue, 10 Feb 2009 20:15:03 -0800 (PST)
Newsgroups gmane.comp.db.metakit
Message-ID <[email protected]>
I am trying to build metakit with mingw on Windows XP, but it is not working.

I get the following messages:

 make
g++ -c -g -O2  -fPIC -DUSE_TCL_STUBS -I../unix/../include -I../unix/../src -I. ../unix/../src/                                                               column.cpp
../unix/../src/column.cpp:1: warning: -fPIC ignored for target (all code is position independe                                                               nt)
g++ -c -g -O2  -fPIC -DUSE_TCL_STUBS -I../unix/../include -I../unix/../src -I. ../unix/../src/                                                               custom.cpp
../unix/../src/custom.cpp:1: warning: -fPIC ignored for target (all code is position independe                                                               nt)
g++ -c -g -O2  -fPIC -DUSE_TCL_STUBS -I../unix/../include -I../unix/../src -I. ../unix/../src/                                                               derived.cpp
../unix/../src/derived.cpp:1: warning: -fPIC ignored for target (all code is position independ                                                               ent)
g++ -c -g -O2  -fPIC -DUSE_TCL_STUBS -I../unix/../include -I../unix/../src -I. ../unix/../src/                                                               fileio.cpp
../unix/../src/fileio.cpp:1: warning: -fPIC ignored for target (all code is position independe                                                               nt)
g++ -c -g -O2  -fPIC -DUSE_TCL_STUBS -I../unix/../include -I../unix/../src -I. ../unix/../src/                                                               field.cpp
../unix/../src/field.cpp:1: warning: -fPIC ignored for target (all code is position independen                                                               t)
g++ -c -g -O2  -fPIC -DUSE_TCL_STUBS -I../unix/../include -I../unix/../src -I. ../unix/../src/                                                               format.cpp
../unix/../src/format.cpp:1: warning: -fPIC ignored for target (all code is position independe                                                               nt)
g++ -c -g -O2  -fPIC -DUSE_TCL_STUBS -I../unix/../include -I../unix/../src -I. ../unix/../src/                                                               handler.cpp
../unix/../src/handler.cpp:1: warning: -fPIC ignored for target (all code is position independ                                                               ent)
g++ -c -g -O2  -fPIC -DUSE_TCL_STUBS -I../unix/../include -I../unix/../src -I. ../unix/../src/                                                               persist.cpp
../unix/../src/persist.cpp:1: warning: -fPIC ignored for target (all code is position independ                                                               ent)
g++ -c -g -O2  -fPIC -DUSE_TCL_STUBS -I../unix/../include -I../unix/../src -I. ../unix/../src/                                                               remap.cpp
../unix/../src/remap.cpp:1: warning: -fPIC ignored for target (all code is position independen                                                               t)
g++ -c -g -O2  -fPIC -DUSE_TCL_STUBS -I../unix/../include -I../unix/../src -I. ../unix/../src/                                                               std.cpp
../unix/../src/std.cpp:1: warning: -fPIC ignored for target (all code is position independent)
g++ -c -g -O2  -fPIC -DUSE_TCL_STUBS -I../unix/../include -I../unix/../src -I. ../unix/../src/                                                               store.cpp
../unix/../src/store.cpp:1: warning: -fPIC ignored for target (all code is position independen                                                               t)
g++ -c -g -O2  -fPIC -DUSE_TCL_STUBS -I../unix/../include -I../unix/../src -I. ../unix/../src/                                                               string.cpp
../unix/../src/string.cpp:1: warning: -fPIC ignored for target (all code is position independe                                                               nt)
g++ -c -g -O2  -fPIC -DUSE_TCL_STUBS -I../unix/../include -I../unix/../src -I. ../unix/../src/                                                               table.cpp
../unix/../src/table.cpp:1: warning: -fPIC ignored for target (all code is position independen                                                               t)
g++ -c -g -O2  -fPIC -DUSE_TCL_STUBS -I../unix/../include -I../unix/../src -I. ../unix/../src/                                                               univ.cpp
../unix/../src/univ.cpp:1: warning: -fPIC ignored for target (all code is position independent                                                               )
g++ -c -g -O2  -fPIC -DUSE_TCL_STUBS -I../unix/../include -I../unix/../src -I. ../unix/../src/                                                               view.cpp
../unix/../src/view.cpp:1: warning: -fPIC ignored for target (all code is position independent                                                               )
g++ -c -g -O2  -fPIC -DUSE_TCL_STUBS -I../unix/../include -I../unix/../src -I. ../unix/../src/                                                               viewx.cpp
../unix/../src/viewx.cpp:1: warning: -fPIC ignored for target (all code is position independen                                                               t)
g++ -shared -o libmk4.so column.o custom.o derived.o fileio.o field.o format.o handler.o persi                                                               st.o remap.o std.o store.o string.o table.o univ.o view.o viewx.o 
g++ -g -O2  -fPIC -DUSE_TCL_STUBS -I../unix/../include -I../unix/../src -I. -o demo.exe \
        ../unix/../demos/demo.cpp libmk4.so 
../unix/../demos/demo.cpp:1: warning: -fPIC ignored for target (all code is position independe                                                               nt)
libmk4.so:remap.cpp:(.text+0x0): multiple definition of `_onexit'
/mingw/lib/crt2.o:crt1.c:(.text+0x10): first defined here
libmk4.so:remap.cpp:(.text+0x30): multiple definition of `atexit'
/mingw/lib/crt2.o:crt1.c:(.text+0x0): first defined here
libmk4.so:remap.cpp:(.text+0x180): multiple definition of `__do_sjlj_init'
C:/mingw/bin/../lib/gcc/mingw32/3.4.5/crtbegin.o:crtstuff.c:(.text+0x0): first defined here
collect2: ld returned 1 exit status
make: *** [demo] Error 1

Any help would be appreciated,

  -EdK




Ed Keith
[email protected]

Blog: edkeith.blogspot.com


      

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the "metakit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/metakit?hl=en
-~----------~----~----~----~------~----~------~--~---