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

[learn-c.org] C tutorial uses the C++ compiler #702

Open
wf- opened this issue Jun 9, 2022 · 1 comment
Open

[learn-c.org] C tutorial uses the C++ compiler #702

wf- opened this issue Jun 9, 2022 · 1 comment

Comments

@wf-
Copy link

wf- commented Jun 9, 2022

Duplicate of #426, but it seems to still be present.
Verified using the following code:

#include <stdio.h>

int main() {
#ifdef __cplusplus
	printf("whoops!\n");
#endif
	return 0;
}
@wf-
Copy link
Author

wf- commented Jun 9, 2022

It looks like the language_id's value in DOMAIN_DATA[LEARNC_DOMAIN] is wrong (should be 11 - https://sphere-engine.com/supported-languages#11).

DOMAIN_DATA[LEARNC_DOMAIN] = {
"language" : "c",
"language_id": 1,
"codemirror_mode": "text/x-csrc",

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

1 participant