Compiling "mbctype.h", "stdafx.h" Does Not Go Through

Asked 2 years ago, Updated 2 years ago, 31 views

I'm having a hard time because I can't compile C that I made a few years ago.
Apparently,

#include "mbctype.h"
# include "stdafx.h"

The compilation does not seem to work.

Are there any conditions for using these two?

I look forward to your kind cooperation.

According to the comment, the error message is

$gcca.c
a.c:3:10: fatal error: 'mbctype.h' file not found
# include <mbctype.h>
         ^
1 error generated.

That's right.

c

2022-09-30 11:26

1 Answers

Compilation does not go through

If so, you should add an error message to the questionnaire and search for the cause of the error message.

The following is a reference to the problem that can be read from the questionnaire, but please check the error message instead of this answer to see what the real is.

The #include directives have different meanings, with the quote and mountain brackets.In addition, <mbctype.h> is used for the _mbbtype function, but you must use the mountain format as shown in the document.

stdafx.h is the default name used in Visual C++ for precompiled headers.If the compilation does not pass due to a problem with the pre-compiled header, it should be configured correctly.
At a minimum, you must not write #include directives before the precompiled header line #include "stdafx.h" .


2022-09-30 11:26

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.