Error while build
bharatesh opened this issue · comments
Hi
I am new to C++ programming. While building project I came across following error.
error: 'autojsoncxx' has not been declared
I know, its a wrong place to raise such questions. But any help or hint would be wonderful. I also includes project folders in "Project Includes" and I am using eclipse Luna.
Thanks and Regards
The include path is wrong?
Or did you include the generated header before compilation?
Thank you very much for replies.
I am doing following steps.
- IDE is eclipse Luna C++.
- I created a test projct.
- Created Includes directory in src folder of project and copied all header files.
- Then build the project.
- I am presently running the example given in following tutorial.
http://netheril96.github.io/autojsoncxx/tutorial/
The serialization example. - I also included folders in include section of the project.
Thanks and Regards
Bharatesh Regoudar.
What is your C++ compiler version? Did you turn on c++11 in your project settings?
Once again thank your feedback. Yes before c++11 was not activated. After activation no errors. But now make giving error like. recipe for make file failed.
@bharatesh Can you post more detailed error message? Turn on all verbose options. I need more information.
Please find detals information after enabling verbose mode.
Description Resource Path Location Type
Function 'max' could not be resolved base.hpp /TestProject/src/include/autojsoncxx line 238 Semantic Error
Function 'max' could not be resolved base.hpp /TestProject/src/include/autojsoncxx line 246 Semantic Error
Function 'max' could not be resolved base.hpp /TestProject/src/include/autojsoncxx line 255 Semantic Error
Function 'max' could not be resolved base.hpp /TestProject/src/include/autojsoncxx line 295 Semantic Error
Function 'max' could not be resolved base.hpp /TestProject/src/include/autojsoncxx line 303 Semantic Error
Function 'max' could not be resolved base.hpp /TestProject/src/include/autojsoncxx line 346 Semantic Error
Function 'min' could not be resolved base.hpp /TestProject/src/include/autojsoncxx line 247 Semantic Error
make: *** [src/TestProject.o] Error 1 TestProject C/C++ Problem
recipe for target 'src/TestProject.o' failed subdir.mk /TestProject/Debug/src line 18 C/C++ Problem
Symbol 'numeric_limits' could not be resolved base.hpp /TestProject/src/include/autojsoncxx line 238 Semantic Error
Symbol 'numeric_limits' could not be resolved base.hpp /TestProject/src/include/autojsoncxx line 246 Semantic Error
Symbol 'numeric_limits' could not be resolved base.hpp /TestProject/src/include/autojsoncxx line 247 Semantic Error
Symbol 'numeric_limits' could not be resolved base.hpp /TestProject/src/include/autojsoncxx line 255 Semantic Error
Symbol 'numeric_limits' could not be resolved base.hpp /TestProject/src/include/autojsoncxx line 295 Semantic Error
Symbol 'numeric_limits' could not be resolved base.hpp /TestProject/src/include/autojsoncxx line 303 Semantic Error
Symbol 'numeric_limits' could not be resolved base.hpp /TestProject/src/include/autojsoncxx line 346 Semantic Error
Fixed Semantic Errors after enabling proper binary parsers.
But still make fails with following messages.
make: *** [src/TestProject.o] Error 1 TestProject C/C++ Problem
recipe for target 'src/TestProject.o' failed subdir.mk /TestProject/Debug/src line 18 C/C++ Problem
@bharatesh I pushed a new commit. Try pulling it down and test again.
@netheril96 I tried. Now recipe for target message is gone. But appeared following one.
Description Resource Path Location Type
make: *** No rule to make target 'all'. Stop. JsonSerializor C/C++ Problem
make: *** No targets specified and no makefile found. Stop. JsonSerializor C/C++ Problem
make: *** No rule to make target 'all'.
That seems to be a problem with your own makefile.
Thank you. For support.