我在编译此代码http://pastebin.com/a7AMbYPv时遇到了麻烦。
这是我得到的错误:
C:\Dev-Cpp\include\main.cpp In function 'int write_jpeg_file(char*)':
109 25 C:\Dev-Cpp\include\main.cpp [Error] invalid conversion from 'int' to 'J_COLOR_SPACE' [-fpermissive]
C:\Dev-Cpp\include\main.cpp In function 'int main()':
130 21 C:\Dev-Cpp\include\main.cpp [Warning] deprecated conversion from string constant to 'char*' [-Wwrite-strings]
130 48 C:\Dev-Cpp\include\main.cpp [Warning] deprecated conversion from string constant to 'char*' [-Wwrite-strings]
C:\Users\NIVER\Desktop\Makefile.win [Error] [../../../Dev-Cpp/include/main.o] Error 1 (if this is the only error: please check your library includes)
任何帮助,将不胜感激。