aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: Compilar mezcla de C y C++ ...undefined reference  (Read 2484 times)

RedDwarf

  • Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 36
Compilar mezcla de C y C++ ...undefined reference
« on: May 25, 2005, 08:33:39 PM »

Pues tengo problemas para compilar DesHacha.

Como era previsible "undefined reference"s al canto:

Quote
g++ -O2 -Wall -c -o deskama.o deskama.cc
cc -O2 -Wall -c -o crc32.o crc32.c
cc -O2 -Wall -c -o adler32.o adler32.c
cc -v deskama.o crc32.o adler32.o -lz -o deskama
Reading specs from /usr/lib/gcc/i586-mandrake-linux-gnu/3.4.3/specs
Configured with: ../configure --prefix=/usr --libexecdir=/usr/lib --with-slibdir=/lib --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --enable-long-long --enable-__cxa_atexit --enable-clocale=gnu --disable-libunwind-exceptions --enable-languages=c,c++,ada,f77,objc,java --host=i586-mandrake-linux-gnu --with-system-zlib
Thread model: posix
gcc version 3.4.3 (Mandrakelinux 10.2 3.4.3-7mdk)
/usr/lib/gcc/i586-mandrake-linux-gnu/3.4.3/collect2 --eh-frame-hdr -m elf_i386 -dynamic-linker /lib/ld-linux.so.2 -o deskama /usr/lib/gcc/i586-mandrake-linux-gnu/3.4.3/../../../crt1.o /usr/lib/gcc/i586-mandrake-linux-gnu/3.4.3/../../../crti.o /usr/lib/gcc/i586-mandrake-linux-gnu/3.4.3/crtbegin.o -L/usr/lib/gcc/i586-mandrake-linux-gnu/3.4.3 -L/usr/lib/gcc/i586-mandrake-linux-gnu/3.4.3 -L/usr/lib/gcc/i586-mandrake-linux-gnu/3.4.3/../../.. deskama.o crc32.o adler32.o -lz -lgcc --as-needed-lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/gcc/i586-mandrake-linux-gnu/3.4.3/crtend.o /usr/lib/gcc/i586-mandrake-linux-gnu/3.4.3/../../../crtn.o
deskama.o(.text+0x846): In function `LeerImagen(stArch*, int, int&;)':
: undefined reference to `operator new[](unsigned int)'
deskama.o(.text+0x9d4): In function `ExtraerImagen(stArch*, int)':
: undefined reference to `operator delete[](void*)'
deskama.o(.text+0xa18): In function `ExtraerImagen(stArch*, int)':
: undefined reference to `operator new[](unsigned int)'
deskama.o(.text+0xa3c): In function `ExtraerImagen(stArch*, int)':
: undefined reference to `operator delete[](void*)'
deskama.o(.text+0xd6a): In function `RegenerarParte(stArch*, int)':
: undefined reference to `operator new[](unsigned int)'
deskama.o(.text+0xe04): In function `RegenerarParte(stArch*, int)':
: undefined reference to `operator delete[](void*)'
deskama.o(.text+0xe72): In function `RegenerarParte(stArch*, int)':
: undefined reference to `operator new[](unsigned int)'
deskama.o(.text+0xeef): In function `RegenerarParte(stArch*, int)':
: undefined reference to `operator delete[](void*)'
deskama.o(.text+0x10d3): In function `ExtraerTodasV1(stArch*, int)':
: undefined reference to `operator new[](unsigned int)'
deskama.o(.text+0x1162): In function `ExtraerTodasV1(stArch*, int)':
: undefined reference to `operator delete[](void*)'
deskama.o(.text+0x11bb): In function `ExtraerTodasV1(stArch*, int)':
: undefined reference to `operator new[](unsigned int)'
deskama.o(.text+0x1263): In function `ExtraerTodasV1(stArch*, int)':
: undefined reference to `operator delete[](void*)'
deskama.o(.text+0x133a): In function `ExtraerTodasV2(stArch*, int)':
: undefined reference to `operator delete[](void*)'
deskama.o(.text+0x15e9): In function `LeerListaPieles(_IO_FILE*, char*, long)':
: undefined reference to `operator new[](unsigned int)'
deskama.o(.text+0x15fe): In function `LeerListaPieles(_IO_FILE*, char*, long)':
: undefined reference to `operator new[](unsigned int)'
deskama.o(.text+0x1613): In function `LeerListaPieles(_IO_FILE*, char*, long)':
: undefined reference to `operator new[](unsigned int)'
deskama.o(.text+0x18bd): In function `LeerListaPatrones(_IO_FILE*, char*, long)':
: undefined reference to `operator new[](unsigned int)'
deskama.o(.text+0x18ce): In function `LeerListaPatrones(_IO_FILE*, char*, long)':
: undefined reference to `operator new[](unsigned int)'
deskama.o(.text+0x260c): In function `CortarKama(char const*)':
: undefined reference to `operator delete[](void*)'
deskama.o(.text+0x2624): In function `CortarKama(char const*)':
: undefined reference to `operator new(unsigned int)'
deskama.o(.text+0x293a): In function `AgregarSFV(char const*, unsigned long)':
: undefined reference to `operator new(unsigned int)'
deskama.o(.text+0x2f97): In function `ProcesarKama(char const*)':
: undefined reference to `operator new[](unsigned int)'
deskama.o(.text+0x36b5): In function `ProcesarKama(char const*)':
: undefined reference to `operator new[](unsigned int)'
deskama.o(.text+0x3919): In function `ProcesarKama(char const*)':
: undefined reference to `operator delete(void*)'
deskama.o(.text+0x4168): In function `ProcesarHacha(char*)':
: undefined reference to `operator new[](unsigned int)'
deskama.o(.text+0x445c): In function `ProcesarHacha(char*)':
: undefined reference to `operator new[](unsigned int)'
deskama.o(.text+0x4cca): In function `CortarHacha(char const*)':
: undefined reference to `operator new[](unsigned int)'
deskama.o(.text+0x4d6e): In function `CortarHacha(char const*)':
: undefined reference to `operator new[](unsigned int)'
deskama.o(.text+0x4d7b): In function `CortarHacha(char const*)':
: undefined reference to `operator new[](unsigned int)'
deskama.o(.text+0x5035): more undefined references to `operator new[](unsigned int)' follow
deskama.o(.text+0x597f): In function `ProcesarHachaPro()':
: undefined reference to `operator delete[](void*)'
deskama.o(.text+0x5bac): In function `CortarHachaPro(char const*)':
: undefined reference to `operator new[](unsigned int)'
deskama.o(.text+0x5c4e): In function `CortarHachaPro(char const*)':
: undefined reference to `operator new[](unsigned int)'
deskama.o(.text+0x5c5d): In function `CortarHachaPro(char const*)':
: undefined reference to `operator new[](unsigned int)'
deskama.o(.text+0x5c98): In function `CortarHachaPro(char const*)':
: undefined reference to `operator new[](unsigned int)'
deskama.o(.text+0x5f1c): In function `CortarHachaPro(char const*)':
: undefined reference to `operator new[](unsigned int)'
deskama.o(.text+0x6e91): more undefined references to `operator new[](unsigned int)' follow
deskama.o(.text+0x6fe4): In function `UnirSyM4Comp()':
: undefined reference to `operator delete[](void*)'
deskama.o(.text+0x6ff4): In function `UnirSyM4Comp()':
: undefined reference to `operator delete[](void*)'
deskama.o(.text+0x715f): In function `UnirSyM4()':
: undefined reference to `operator new[](unsigned int)'
deskama.o(.text+0x7225): In function `UnirSyM4()':
: undefined reference to `operator delete[](void*)'
deskama.o(.text+0x76d2): In function `sym4IniOutStreamer(z_stream_s*)':
: undefined reference to `operator new[](unsigned int)'
deskama.o(.text+0x7c2d): In function `CortarSyM4(char*)':
: undefined reference to `operator new[](unsigned int)'
deskama.o(.text+0x7c5f): In function `CortarSyM4(char*)':
: undefined reference to `operator new[](unsigned int)'
deskama.o(.text+0x7cb7): In function `CortarSyM4(char*)':
: undefined reference to `operator new[](unsigned int)'
deskama.o(.text+0x7db6): In function `CortarSyM4(char*)':
: undefined reference to `operator delete[](void*)'
deskama.o(.text+0x7dcc): In function `CortarSyM4(char*)':
: undefined reference to `operator delete[](void*)'
deskama.o(.text+0x7df7): In function `CortarSyM4(char*)':
: undefined reference to `operator new[](unsigned int)'
deskama.o(.text+0x89ef): In function `ProcesarCamu(char const*)':
: undefined reference to `operator new[](unsigned int)'
deskama.o(.text+0x8d2d): In function `ProcesarCamu(char const*)':
: undefined reference to `operator delete[](void*)'
deskama.o(.text+0x8f8e): In function `Camuflar(char**, int)':
: undefined reference to `operator new[](unsigned int)'
deskama.o(.eh_frame+0x11): undefined reference to `__gxx_personality_v0'
collect2: ld returned 1 exit status

Es un Mandrake 10.2, GCC 3.4.3.
Alguien sabe como tratar con estas cosas? ?(
Logged