02-25-04 02:39 PM
Karthik <karthik@nospam.com> writes:
> I am getting a few undefined reference errors during compilation.
You don't. You get an error message during *linking*
> /root/tmp/cc5h04lE.o(.text+0x11ee): In function `main':
> /root/init_test/init/main.cpp:596: undefined reference to
> `init_auth_itself()'
The 'nm' output you've posted indicates that the missing functions
have 'extern "C"' linkage. Unresolved references come from C++ code.
Do the "problem" functions have 'extern "C"' when they are prototyped
in main.cpp ? Probably not ...
> Is there any limitation in the
> number of object files that can be passed for linking purposes. I have
> around 20 - 30 object files as input for linking the main binary.
There is a limitation on total command-line length. If you exceed
that limit, make or your shell will fail with 'argument list too
long'.
You did not specify what system you've done this on, but it looks
like Linux, where the command-line-limit is almost 32 pages
(128KBytes) long. We can safely assume you did not hit that limit.
Cheers,
--
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.
[ Post a follow-up to this message ]
|