Hello guys,
I am compiling with Carbide a project which has about 400 files between headers and source.
When I’ve included all the files, they would compile but not link:
Error: command line is too long.
Then I’ve flattered the directories structure so to have a shorter command line to give to the linker.
It looks like it had some effects, but now I get another – I believe related – problem:
the linker doesn’t find the symbols.
Example:
file1.c: extern int xxx;
file2.c int xxx = 1;
Error:
undefined reference to xxx, resource: file1.c
file2.c it is in the command line given to the linker but it looks like the linker doesn’t care.
Question: does the linker has as well a limitation about the number of files that can be included?
Any idea about how to solve the problem?
Thanks in advance,
Mik



