{"action":"created","issue":{"url":"https://api.github.com/repos/vishaps/voc/issues/43","repository_url":"https://api.github.com/repos/vishaps/voc","labels_url":"https://api.github.com/repos/vishaps/voc/issues/43/labels{/name}","comments_url":"https://api.github.com/repos/vishaps/voc/issues/43/comments","events_url":"https://api.github.com/repos/vishaps/voc/issues/43/events","html_url":"https://github.com/vishaps/voc/issues/43","id":176915966,"number":43,"title":"Undefined reference","user":{"login":"deevans","id":18558357,"avatar_url":"https://avatars.githubusercontent.com/u/18558357?v=3","gravatar_id":"","url":"https://api.github.com/users/deevans","html_url":"https://github.com/deevans","followers_url":"https://api.github.com/users/deevans/followers","following_url":"https://api.github.com/users/deevans/following{/other_user}","gists_url":"https://api.github.com/users/deevans/gists{/gist_id}","starred_url":"https://api.github.com/users/deevans/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deevans/subscriptions","organizations_url":"https://api.github.com/users/deevans/orgs","repos_url":"https://api.github.com/users/deevans/repos","events_url":"https://api.github.com/users/deevans/events{/privacy}","received_events_url":"https://api.github.com/users/deevans/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":25,"created_at":"2016-09-14T14:03:08Z","updated_at":"2016-09-15T14:12:15Z","closed_at":null,"body":"Trying to reproduce the Pascal copytext using J&K Software Tools modules results in the following:\r\n\r\ncopy.mod  compiling copy.  Main program.  259 chars.\r\n/tmp/ccsPZDIr.o: In function `main':\r\n/home/sinuhe/src/obn/copy.c:14: undefined reference to `Filters__init'\r\n/home/sinuhe/src/obn/copy.c:17: undefined reference to `Filters_copy'\r\ncollect2: error: ld returned 1 exit status\r\nAssemble and link: gcc -fPIC -g  -I \"/opt/voc/include\"  copy.c  -o copy -L\"/opt/voc/lib\" -l voc\r\n-- failed: status 0, exitcode 1.\r\nTerminated by Halt(1).\r\n\r\nThe following code was used:\r\n\r\nMODULE Prims; IMPORT ulmIO;\r\n  CONST FS* = 1CX; EOF* = 1CX;\r\n\r\n  PROCEDURE getc*(VAR c: CHAR): CHAR;\r\n    VAR ch: CHAR;\r\n  BEGIN ulmIO.Read(ch);\r\n    IF ~ulmIO.Done THEN c := EOF\r\n    ELSE c := ch\r\n    END;\r\n    RETURN c\r\n  END getc;\r\n\r\n  PROCEDURE putc*(c: CHAR);\r\n  BEGIN ulmIO.Write(c)\r\n  END putc;\r\n\r\nEND Prims.\r\n\r\nMODULE Filters; IMPORT Prims;\r\n\r\n  PROCEDURE copy*;\r\n    VAR c: CHAR;\r\n  BEGIN WHILE (Prims.getc(c) # Prims.EOF) DO Prims.putc(c) END\r\n  END copy;\r\n\r\nEND Filters.\r\n\r\nMODULE copy; IMPORT Filters;\r\nBEGIN Filters.copy\r\nEND copy.\r\n\r\nThese were compiled with the following commands, assuming separate files for each module:\r\n\r\n  voc Prims.mod; voc Filters.mod; voc -m copy.mod\r\n\r\nThis is on Fedora 24 with GCC 6.1.1.\r\n\r\nIs there something I'm doing wrong?\r\n\r\nOddly, a more classic copytext works, as it is essentially the same program:\r\n\r\nMODULE copytext; IMPORT ulmIO;\r\n  VAR ch: CHAR;\r\n\r\nBEGIN ulmIO.Read(ch);\r\n  WHILE ulmIO.Done DO\r\n    ulmIO.Write(ch); ulmIO.Read(ch);\r\n  END\r\nEND copytext."},"comment":{"url":"https://api.github.com/repos/vishaps/voc/issues/comments/247339662","html_url":"https://github.com/vishaps/voc/issues/43#issuecomment-247339662","issue_url":"https://api.github.com/repos/vishaps/voc/issues/43","id":247339662,"user":{"login":"deevans","id":18558357,"avatar_url":"https://avatars.githubusercontent.com/u/18558357?v=3","gravatar_id":"","url":"https://api.github.com/users/deevans","html_url":"https://github.com/deevans","followers_url":"https://api.github.com/users/deevans/followers","following_url":"https://api.github.com/users/deevans/following{/other_user}","gists_url":"https://api.github.com/users/deevans/gists{/gist_id}","starred_url":"https://api.github.com/users/deevans/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deevans/subscriptions","organizations_url":"https://api.github.com/users/deevans/orgs","repos_url":"https://api.github.com/users/deevans/repos","events_url":"https://api.github.com/users/deevans/events{/privacy}","received_events_url":"https://api.github.com/users/deevans/received_events","type":"User","site_admin":false},"created_at":"2016-09-15T14:12:15Z","updated_at":"2016-09-15T14:12:15Z","body":"Success, thank you."}}
{"actor":{"display_login":"deevans"}}