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

HLSLTokenizer prb #2

Open
dgu123 opened this issue Feb 13, 2015 · 2 comments
Open

HLSLTokenizer prb #2

dgu123 opened this issue Feb 13, 2015 · 2 comments

Comments

@dgu123
Copy link

dgu123 commented Feb 13, 2015

Dear team ,

during the compilation , next error happend,
==== Building HLSLParser (debug) ====
HLSLTokenizer.cpp
In file included from ../src/HLSLTokenizer.cpp:4:0:
../src/HLSLTokenizer.h:92:61: error: ‘size_t’ has not been declared
HLSLTokenizer(const char* fileName, const char* buffer, size_t length);
^
../src/HLSLTokenizer.cpp:92:1: error: prototype for ‘M4::HLSLTokenizer::HLSLTokenizer(const char_, const char_, size_t)’ does not match any in class ‘M4::HLSLTokenizer’
HLSLTokenizer::HLSLTokenizer(const char* fileName, const char* buffer, size_t length)
^
In file included from ../src/HLSLTokenizer.cpp:4:0:
../src/HLSLTokenizer.h:83:7: error: candidates are: M4::HLSLTokenizer::HLSLTokenizer(const M4::HLSLTokenizer&)
class HLSLTokenizer
^
../src/HLSLTokenizer.h:92:5: error: M4::HLSLTokenizer::HLSLTokenizer(const char_, const char_, int)
HLSLTokenizer(const char* fileName, const char* buffer, size_t length);
^
make[1]: *** [obj/Debug/HLSLTokenizer.o] Erreur 1

@zz85
Copy link

zz85 commented Feb 14, 2015

looks was the issue i'm was referring to in #1. you need to add #include <stddef.h>

@dgu123
Copy link
Author

dgu123 commented Feb 14, 2015

Yes it help but then i needed to add #include <string.h> #include <limits.h> in string.cpp
regards
david

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

2 participants