OpenDriver2 / REDRIVER2

Driver 2 Playstation game reverse engineering effort
MIT License
1.08k stars 62 forks source link

Link error with gcc #172

Closed 50thomatoes50 closed 2 years ago

50thomatoes50 commented 2 years ago

clock variable from REDRIVER2/src_rebuild/Game/C/director.c:39 is conflicting clock function from libc

/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.3.0/../../../../arm-vita-eabi/bin/ld: /usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.3.0/../../../../arm-vita-eabi/lib/libc.a(lib_a-clock.o): in function `clock':
clock.c:(.text.clock+0x0): multiple definition of `clock'; CMakeFiles/redriver2vita.dir/REDRIVER2/src_rebuild/Game/C/director.c.obj:(.bss+0x90): first defined here
SoapyMan commented 2 years ago

You can pull my dev branch or commit below: https://github.com/OpenDriver2/REDRIVER2/commit/c25ee05353ae44c61d48a340d0ee7cd000ebc608