[CLUE-Tech] Dumb C/GCC question
Dale Hawkins
dhawkins at cdrgts.com
Mon Jun 17 09:36:27 MDT 2002
On Sat, 2002-06-15 at 14:15, Matt Gushee wrote:
> Hi, folks--
>
> I am having trouble compiling a C program. The build is failing with
> this error:
>
> /usr/local/src/mercury-compiler-0.10.1/trace/mercury_trace.c:194: \
> undefined reference to `MR_COLLECT_filter'
If I am understanding the problem correctly, the problem is in the
linking stage. In other words, the compiler worked just fine, otherwise
you would have seen an "implicit declaration". However, the code which
implements the MR_COLLECT_filter is not in any of the objects being
linked into the executable.
The correct compilation would need to link in the
mercury_trace_external.c code either as an object file (.o) or as part
of a library (.a or .so).
Hope this helps.
-Dale
--
Now playing:
WormSamp
Better to have endured moments of sheer terror, than to have died having
lived life a coward.
A good solution now is better than a perfect solution tomorrow.
- From debian-curiosa
Payin' the bills with my mad programming skills.
- Weird Al
More information about the clue-tech
mailing list