[Tack-devel] Confusion on system libraries.
Moved to https://github.com/davidgiven/ack
Brought to you by:
dtrg
From: Carl E. C. <cec...@ya...> - 2019-05-13 17:40:29
|
Greetings, I am completely confused on the usage and building of the non C system libraries. When i try to build asprint.p in util/em_ass by targeting -mem22 using ack (and also using my own apc application), i get duplicate symbols, because it links with libc.a, libsys.a and libpc.a Now the solution i found to resolve this is that only to link libpc (libpascal), and libsys. By doing this you then get three unresolved symbols:* free* malloc* _environ So my next step is simply to build libpc.a using malloc.c and environ.c of the libc library.Therefore linking is only done using libsys.a and libpc.a. I feel it makes sense, but i want confirmation... Is this the correct approach?Carl |