packjpg / packJPG

A compression program for further compressing JPEG image files
http://packjpg.encode.ru/
GNU Lesser General Public License v3.0
165 stars 26 forks source link

[packMP3] error: invalid conversion from ‘const char*’ to ‘char*’ #2

Closed szepeviktor closed 8 years ago

szepeviktor commented 9 years ago

On Debian/wheezy amd64:

$ make
g++ -c -o aricoder.o aricoder.cpp -I. -DDEV_BUILD -O3 -Wall -pedantic -funroll-loops -ffast-math -fsched-spec-load -fomit-frame-pointer
g++ -c -o bitops.o bitops.cpp -I. -DDEV_BUILD -O3 -Wall -pedantic -funroll-loops -ffast-math -fsched-spec-load -fomit-frame-pointer
g++ -c -o huffmp3.o huffmp3.cpp -I. -DDEV_BUILD -O3 -Wall -pedantic -funroll-loops -ffast-math -fsched-spec-load -fomit-frame-pointer
g++ -c -o packmp3.o packmp3.cpp -I. -DDEV_BUILD -O3 -Wall -pedantic -funroll-loops -ffast-math -fsched-spec-load -fomit-frame-pointer
packmp3.cpp: In function ‘void set_extension(const char*, const char*)’:
packmp3.cpp:6050:54: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
make: *** [packmp3.o] Error 1

After adding -fpermissive to the Makefile it compiles.

szepeviktor commented 9 years ago

And because it is no win32:

#RES     = icons.res
packjpg commented 8 years ago

I could not reproduce this error. I guess this is already fixed. Closing this for now, but you may want to check yourself, too!