-
Notifications
You must be signed in to change notification settings - Fork 17
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
GCC 10: error: ‘strcasecmp’ was not declared in this scope #110
Comments
How did you build the compiler? Are you cross compiling or building natively? What happens if you use |
Are you using |
@sodero no, I'm not using
😅 |
@MBeijer Does this work for you? Sorry about the weird way of showing example code. I have networking issues in my Amiga cave. |
I'm cross compiling from Linux. Will do some tests with your example code
and get back to you with the results.
… Message ID: ***@***.***>
|
Strange, with that test code it worked fine with `-athread=native
-mcrt=newlib` and `-athread=single -mcrt=clib2`
It's really strange that the code I compile to get the error has the same
includes + `-athread=native -mcrt=newlib`.
The same code compiles just fine with both the MorphOS cross toolchain and
Bebbo's m68k toolchain without issue.
… Message ID: ***@***.***>
>
|
In case you were building with -std=c++11 (or later), try -std=gnu++11. In newlib, strcasecmp and some other functions are not available if STRICT_ANSI is defined. I have seen similar problem when building MilkyTracker. First I tried -U__STRICT_ANSI__ which works around it, but gnu++11 is probably a cleaner solution. |
Ah, okay, this was probably when trying to compile MilkyTracker... Can't
remember.
… Message ID: ***@***.***>
|
Hi!
I'm having trouble compiling a program since I updated to GCC 10, where I get the error
even though I have these includes:
or these:
with
-mcrt=newlib
I looked at the newlib includes and they seem to define the function, so it seems like it's not loading the proper includes from newlib for some reason.
I hope someone can help out with this!
The text was updated successfully, but these errors were encountered: