c3c icon indicating copy to clipboard operation
c3c copied to clipboard

linker errors if multiple C files have same name

Open Waqar144 opened this issue 1 year ago • 2 comments

when using c sources mixed with c3 sources, if there are two C files in different directories with same name then it results in linker errors

Waqar144 avatar Nov 01 '24 13:11 Waqar144

Yes, that's probably rather inevitable using the current scheme where all .o files are placed in the same directory. Possibly we could rename them?

lerno avatar Nov 01 '24 13:11 lerno

Yes, that'd be good. I'd suggest just suffixing a number for the duplicates. The compiler can print note to stderr about the duplication and the new name.

Waqar144 avatar Nov 01 '24 13:11 Waqar144