Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

linker errors if multiple C files have same name #1592

Open
Waqar144 opened this issue Nov 1, 2024 · 2 comments
Open

linker errors if multiple C files have same name #1592

Waqar144 opened this issue Nov 1, 2024 · 2 comments
Labels
Accepted Accepted Request Discussion needed This feature needs discussion to iron out details Enhancement Request New feature or request
Milestone

Comments

@Waqar144
Copy link
Contributor

Waqar144 commented Nov 1, 2024

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

@lerno
Copy link
Collaborator

lerno commented Nov 1, 2024

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 lerno added Enhancement Request New feature or request Discussion needed This feature needs discussion to iron out details labels Nov 1, 2024
@Waqar144
Copy link
Contributor Author

Waqar144 commented Nov 1, 2024

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.

@lerno lerno added the Accepted Accepted Request label Nov 3, 2024
@lerno lerno added this to the 0.6.5 milestone Nov 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Accepted Accepted Request Discussion needed This feature needs discussion to iron out details Enhancement Request New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants