-frepo option

andy@softbookpress.com andy@softbookpress.com
Wed Dec 6 18:11:00 GMT 2000


Sorry if it's not exactly a cross-compile issue

Here's a simplle program:
#include <string>
#include <stdio.h>
#include <vector>

typedef struct my_struct
{
   int a;
   short b;
}MyStruct;

vector<MyStruct> myVec;

void test();
int main ()

{
        test();
        return 0;
}


void test()
{
        MyStruct blah;

        try{
               myVec.push_back(blah);
              throw(1);
        }
        catch(...){

        }
}

I'm compiling it with the -frepo option ( 2.95.1)
#g++ -frepo -o test.o -c test.cpp
#g++ -O2 -o testapp test.o
collect: recompiling test.cpp
collect: relinking
test.o: In function `vector<my_struct, allocator<my_struct>
>::_M_insert_aux(my_struct *, my_struct const &)':
test.o(.text+0x620): undefined reference to
`__uninitialized_copy_aux__H2ZP9my_structZP9my_struct_X01X01X11G12__false_type_X
11'
test.o(.text+0x69c): undefined reference to
`__uninitialized_copy_aux__H2ZP9my_structZP9my_struct_X01X01X11G12__false_type_X
11'
collect2: ld returned 1 exit status

What's the right way to use this option ?
Is there any advantage of using it ( in terms of the code size)

TIA
Andy



------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com



More information about the crossgcc mailing list