Mail Archives: djgpp/1997/01/14/10:35:48
On Mon, 13 Jan 1997, Benjamin Audy wrote:
> But when I create a "test.o" file and try to link the two together
> with "ld", it doesn't work.
>
> First, I tried: "ld test.o func.o", but it gives me a list of
> undefined references, who are some standard library functions I call
> from test.cpp, (ie: malloc).
Don't call ld directly, it needs gobs of options and libraries in specific
order, and there's no reason for you to remember them. Use gxx, even if
you only need to link:
gxx -o test.exe test.o func.o
- Raw text -