Ver Mensaje Individual
  #3 (permalink)  
Antiguo 06/04/2013, 07:31
Lotux5
 
Fecha de Ingreso: enero-2013
Mensajes: 25
Antigüedad: 11 años, 9 meses
Puntos: 0
Respuesta: Error con rand() y memcpy()

Ok, ya quite el argumento de rand() y puse el #include "string.h" pero ahora me sale esto:
Código HTML:
Ver original
  1. src/Matriz2D-1.cpp: In function int** SubMatriz2D_1(Matriz2D_1, int, int, int, int):
  2. src/Matriz2D-1.cpp:76:79: error: invalid conversion from int to void* [-fpermissive]
  3. /usr/include/string.h:44:14: error:   initializing argument 1 of void* memcpy(void*, const void*, size_t) [-fpermissive]
  4. src/Matriz2D-1.cpp:76:79: error: invalid conversion from int to const void* [-fpermissive]
  5. /usr/include/string.h:44:14: error:   initializing argument 2 of void* memcpy(void*, const void*, size_t) [-fpermissive]
  6. src/Matriz2D-1.cpp: In function int** EliminaColumnaMatriz2D_1(Matriz2D_1, int, int, int):
  7. src/Matriz2D-1.cpp:89:65: error: invalid conversion from int to void* [-fpermissive]
  8. /usr/include/string.h:44:14: error:   initializing argument 1 of void* memcpy(void*, const void*, size_t) [-fpermissive]
  9. src/Matriz2D-1.cpp:89:65: error: invalid conversion from int to const void* [-fpermissive]
  10. /usr/include/string.h:44:14: error:   initializing argument 2 of void* memcpy(void*, const void*, size_t) [-fpermissive]
  11. src/Matriz2D-1.cpp:93:65: error: invalid conversion from int to void* [-fpermissive]
  12. /usr/include/string.h:44:14: error:   initializing argument 1 of void* memcpy(void*, const void*, size_t) [-fpermissive]
  13. src/Matriz2D-1.cpp:93:65: error: invalid conversion from int to const void* [-fpermissive]
  14. /usr/include/string.h:44:14: error:   initializing argument 2 of void* memcpy(void*, const void*, size_t) [-fpermissive]
  15. src/Matriz2D-1.cpp: In function int** TraspuestaMatriz2D_1(Matriz2D_1, int, int):
  16. src/Matriz2D-1.cpp:119:56: error: invalid conversion from int to void* [-fpermissive]
  17. /usr/include/string.h:44:14: error:   initializing argument 1 of void* memcpy(void*, const void*, size_t) [-fpermissive]
  18. src/Matriz2D-1.cpp:119:56: error: invalid conversion from int to const void* [-fpermissive]
  19. /usr/include/string.h:44:14: error:   initializing argument 2 of void* memcpy(void*, const void*, size_t) [-fpermissive]

Gracias por la ayuda.