Skip to content

[error] 헤더파일 #3

@im3zero

Description

@im3zero

../L3_Quiz.cpp:4:13: error: conflicting declaration 'const char* quiz_questions [3]'
4 | const char* quiz_questions[QUIZ_COUNT] = {
| ^~~~~~~~~~~~~~
In file included from ../L3_Quiz.cpp:1:
../L3_Quiz.h:11:20: note: previous declaration as 'const char* quiz_questions [4]'
11 | extern const char* quiz_questions[QUIZ_TOTAL_COUNT];
| ^~~~~~~~~~~~~~
../L3_Quiz.cpp:11:13: error: conflicting declaration 'const char* quiz_questions_for_user [3]'
11 | const char* quiz_questions_for_user[QUIZ_COUNT] = {
| ^~~~~~~~~~~~~~~~~~~~~~~
In file included from ../L3_Quiz.cpp:1:
../L3_Quiz.h:12:20: note: previous declaration as 'const char* quiz_questions_for_user [4]'
12 | extern const char* quiz_questions_for_user[QUIZ_TOTAL_COUNT];
| ^~~~~~~~~~~~~~~~~~~~~~~
../L3_Quiz.cpp:18:13: error: conflicting declaration 'const char* quiz_answers [3]'
18 | const char* quiz_answers[QUIZ_COUNT] = {
| ^~~~~~~~~~~~
In file included from ../L3_Quiz.cpp:1:
../L3_Quiz.h:13:20: note: previous declaration as 'const char* quiz_answers [4]'
13 | extern const char* quiz_answers[QUIZ_TOTAL_COUNT];
| ^~~~~~~~~~~~
make[1]: *** [L3_Quiz.o] Error 1
make: *** [all] Error 2
cp: ./BUILD/myProtocol.bin: No such file or directory

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions