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

Subject: Conflict between declaration without prototype and definition with prototype of __dls2 #92

Open
oresterosso75 opened this issue Nov 11, 2024 · 1 comment

Comments

@oresterosso75
Copy link

During compilation, a warning occurred regarding a conflict between the declaration of __dls2 without a prototype in the dlstart.c file and its definition with a prototype in the rcrt1.c file. The compiler reports that the declaration without a prototype is deprecated and is treated as a zero-parameter prototype in C2x.

warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype]

photo_2024-11-11_18-15-20

Request: How can we resolve this conflict? Should the declaration be aligned with the prototype, or are there other solutions to consider?

@xfangfang
Copy link
Owner

xfangfang commented Nov 11, 2024

We usezig for the convenience of cross compilation. You can always compile directly on the target platform or use other cross compilation toolchains, such as: https://musl.cc

example of using muslcc: #34 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants