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
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"
.
© 2024 OneMinuteCode. All rights reserved.