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

some errors of making #5

Open
hcp6897 opened this issue Apr 14, 2018 · 1 comment
Open

some errors of making #5

hcp6897 opened this issue Apr 14, 2018 · 1 comment

Comments

@hcp6897
Copy link

hcp6897 commented Apr 14, 2018

ubuntu@ubuntu:~/Desktop/GLTools/build$ make
[ 8%] Building CXX object CMakeFiles/gltools-static.dir/src/GLTools.cpp.o
/home/ubuntu/Desktop/GLTools/src/GLTools.cpp: In function ‘GLbyte* gltReadBMPBits(const char*, int*, int*)’:
/home/ubuntu/Desktop/GLTools/src/GLTools.cpp:1060:10: error: cannot convert ‘bool’ to ‘GLbyte* {aka signed char*}’ in return
return false;
^~~~~
/home/ubuntu/Desktop/GLTools/src/GLTools.cpp:1072:10: error: cannot convert ‘bool’ to ‘GLbyte* {aka signed char*}’ in return
return false;
^~~~~
/home/ubuntu/Desktop/GLTools/src/GLTools.cpp: In function ‘GLuint gltLoadShaderTripletWithAttributes(const char*, const char*, const char*, ...)’:
/home/ubuntu/Desktop/GLTools/src/GLTools.cpp:1256:32: warning: format not a string literal and no format arguments [-Wformat-security]
fprintf(stderr, infoLog);
^
CMakeFiles/gltools-static.dir/build.make:110: recipe for target 'CMakeFiles/gltools-static.dir/src/GLTools.cpp.o' failed
make[2]: *** [CMakeFiles/gltools-static.dir/src/GLTools.cpp.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/gltools-static.dir/all' failed
make[1]: *** [CMakeFiles/gltools-static.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2

@hcp6897
Copy link
Author

hcp6897 commented Apr 14, 2018

home/ubuntu/Desktop/GLTools/src/GLTools.cpp:1072:10: error: cannot convert ‘bool’ to ‘GLbyte* {aka signed char*}’ in return
return false;

modify the renturn NULL;

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

1 participant