• Order of the Butterfly
    Order of the Butterfly
    Minuous
    Posts: 161 from 2010/2/13
    I'm using this script:

    gcc -noixemul -x c++ -O1 -o amiga.o -c amiga.c -I../source/
    gcc -noixemul -x c++ -O1 -o ahi.o -c ahi.c -I../source/
    gcc -noixemul -x c++ -O1 -o unzip.o -c unzip.c -I../source/
    gcc -noixemul -x c++ -O1 -o cart.o -c cart.cpp -I../source/
    gcc -noixemul -x c++ -O1 -o handy.o -c handy.cpp -I../source/
    gcc -noixemul -x c++ -O1 -o system.o -c system.cpp -I../source/
    gcc -noixemul -x c++ -O1 -o susie.o -c susie.cpp -I../source/
    gcc -noixemul -x c++ -O1 -o rom.o -c rom.cpp -I../source/
    gcc -noixemul -x c++ -O1 -o ram.o -c ram.cpp -I../source/
    gcc -noixemul -x c++ -O1 -o mikie.o -c mikie.cpp -I../source/
    gcc -noixemul -x c++ -O1 -o memmap.o -c memmap.cpp -I../source/
    gcc -noixemul -o ../Handy amiga.o ahi.o unzip.o cart.o handy.o system.o susie.o rom.o ram.o mikie.o memmap.o

    and I keep getting these kinds of errors when linking:

    undefined reference to 'ios virtual table'
    undefined reference to 'strstreambase::ios virtual table'
    undefined reference to 'streambuf::streambuf(int)'
    undefined reference to 'strstreambuf virtual table'
    etc...

    This source code compiles and links fine with StormC in GCC mode, and I can compile and link C programs with GCC without problems.

    Is there another file I should be linking with, if so, what? Thanks.
  • »05.08.12 - 03:09
    Profile Visit Website