{"action":"created","issue":{"url":"https://api.github.com/repos/sisoputnfrba/foro/issues/996","repository_url":"https://api.github.com/repos/sisoputnfrba/foro","labels_url":"https://api.github.com/repos/sisoputnfrba/foro/issues/996/labels{/name}","comments_url":"https://api.github.com/repos/sisoputnfrba/foro/issues/996/comments","events_url":"https://api.github.com/repos/sisoputnfrba/foro/issues/996/events","html_url":"https://github.com/sisoputnfrba/foro/issues/996","id":312261062,"number":996,"title":"Undefined reference to log_create (TP0)","user":{"login":"vickyRuiz","id":1659354,"avatar_url":"https://avatars2.githubusercontent.com/u/1659354?v=4","gravatar_id":"","url":"https://api.github.com/users/vickyRuiz","html_url":"https://github.com/vickyRuiz","followers_url":"https://api.github.com/users/vickyRuiz/followers","following_url":"https://api.github.com/users/vickyRuiz/following{/other_user}","gists_url":"https://api.github.com/users/vickyRuiz/gists{/gist_id}","starred_url":"https://api.github.com/users/vickyRuiz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vickyRuiz/subscriptions","organizations_url":"https://api.github.com/users/vickyRuiz/orgs","repos_url":"https://api.github.com/users/vickyRuiz/repos","events_url":"https://api.github.com/users/vickyRuiz/events{/privacy}","received_events_url":"https://api.github.com/users/vickyRuiz/received_events","type":"User","site_admin":false},"labels":[{"id":250745443,"url":"https://api.github.com/repos/sisoputnfrba/foro/labels/herramientas-eclipse-git-vms-etc","name":"herramientas-eclipse-git-vms-etc","color":"fbca04","default":false},{"id":894041440,"url":"https://api.github.com/repos/sisoputnfrba/foro/labels/tp0-workshop","name":"tp0-workshop","color":"8459c1","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-04-08T01:41:34Z","updated_at":"2018-04-08T15:46:42Z","closed_at":"2018-04-08T15:15:51Z","author_association":"NONE","body":"Hola! Estoy teniendo problemas con la simple línea: \r\n\r\n```\r\nlogger = log_create(\"tp0.log\", \"TP0\", true, LOG_LEVEL_INFO);\r\n```\r\n\r\nEsto es el mensaje de la consola: \r\n\r\n```\r\n22:32:15 **** Incremental Build of configuration Debug for project TP 0 desde new c project ****\r\nmake all \r\nBuilding file: ../tp0.c\r\nInvoking: GCC C Compiler\r\ngcc -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF\"tp0.d\" -MT\"tp0.o\" -o \"tp0.o\" \"../tp0.c\"\r\nFinished building: ../tp0.c\r\n \r\nBuilding target: TP 0 desde new c project\r\nInvoking: GCC C Linker\r\ngcc  -o \"TP 0 desde new c project\"  ./tp0.o   \r\n./tp0.o: In function `configure_logger':\r\n/home/utnso/git/utnso-tp0-vicky/Debug/../tp0.c:25: undefined reference to `log_create'\r\ncollect2: error: ld returned 1 exit status\r\nmake: *** [TP 0 desde new c project] Error 1\r\nmakefile:29: recipe for target 'TP 0 desde new c project' failed\r\n\r\n22:32:16 Build Finished (took 1s.169ms)\r\n\r\n\r\n```\r\n\r\nEstoy usando el repositorio del tp0, que incluye a tp0.h (`#include \"tp0.h\"`) al principio, que a su vez incluye a commons/log.h (`#include <commons/log.h>`).\r\n\r\nComo comentario, de vez en cuando, cuando paso el mouse sobre `log_create`, me dice que no tiene suficientes argumentos, pero su prototipo en las commons es: \r\n\r\n```\r\nt_log* \t\tlog_create(char* file, char *program_name, bool is_active_console, t_log_level level);\r\n```\r\n\r\nY además, ya estoy usando exactamente la misma línea de código que subieron a la solución del TP hoy.\r\n\r\nNo sé si tendrá algo que ver, pero la única diferencia que hay entre el repo del TP0 y el mio, es que creé un proyecto nuevo y puse el código clonado del tp0 adentro, y luego fui a New > C project > Managed C Build, y ahí puse la carpeta que tenía mi repo. Esto lo hice porque antes de eso, con el repo clonado directamente no me habilitaba el botón para hacer el build.\r\n\r\nQué puedo hacer con esto?"},"comment":{"url":"https://api.github.com/repos/sisoputnfrba/foro/issues/comments/379560111","html_url":"https://github.com/sisoputnfrba/foro/issues/996#issuecomment-379560111","issue_url":"https://api.github.com/repos/sisoputnfrba/foro/issues/996","id":379560111,"user":{"login":"mgarciaisaia","id":1190974,"avatar_url":"https://avatars1.githubusercontent.com/u/1190974?v=4","gravatar_id":"","url":"https://api.github.com/users/mgarciaisaia","html_url":"https://github.com/mgarciaisaia","followers_url":"https://api.github.com/users/mgarciaisaia/followers","following_url":"https://api.github.com/users/mgarciaisaia/following{/other_user}","gists_url":"https://api.github.com/users/mgarciaisaia/gists{/gist_id}","starred_url":"https://api.github.com/users/mgarciaisaia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mgarciaisaia/subscriptions","organizations_url":"https://api.github.com/users/mgarciaisaia/orgs","repos_url":"https://api.github.com/users/mgarciaisaia/repos","events_url":"https://api.github.com/users/mgarciaisaia/events{/privacy}","received_events_url":"https://api.github.com/users/mgarciaisaia/received_events","type":"User","site_admin":false},"created_at":"2018-04-08T15:46:42Z","updated_at":"2018-04-08T15:46:42Z","author_association":"OWNER","body":"¡Exacto!\n\nEse es el punto - si dejás que Eclipse maneje las cosas, por defecto crea y\nusa el makefile en el directorio Debug.\n"}}
{"actor":{"display_login":"mgarciaisaia"}}