kode54 / File_Extractor

Compressed file extraction library
4 stars 4 forks source link

building error on OSX #2

Open superzazu opened 8 years ago

superzazu commented 8 years ago

Hello,

I tried to compile the project on OSX 10.11 (with clang), and received the following error: clang++ -c -pipe -stdlib=libc++ -mmacosx-version-min=10.7 -O2 -arch x86_64 -fPIC -Wall -W -DQT_NO_DEBUG -I/usr/local/Cellar/qt/4.8.7_2/mkspecs/unsupported/macx-clang-libc++ -I. -I/usr/local/Cellar/qt/4.8.7_2/include -I../.. -I. -o strfn.o ../../unrar/strfn.cpp ../../unrar/strfn.cpp:240:10: error: use of undeclared identifier 'wcsicomp'; did you mean 'wcsicompc'? return wcsicomp(Str1,Str2); ^~~~~~~~ wcsicompc ../../unrar/strfn.cpp:235:5: note: 'wcsicompc' declared here int wcsicompc(const wchar *Str1,const wchar *Str2) ^ 1 error generated. make: *** [strfn.o] Error 1

Have a good day

kode54 commented 8 years ago

I see you are missing the _UNIX declaration in your project files. I should probably add that to the Qt Project file as well.

On Feb 16, 2016, at 6:49 AM, Nicolas Allemand notifications@github.com wrote:

Hello,

I tried to compile the project on OSX 10.11 (with clang), and received the following error: clang++ -c -pipe -stdlib=libc++ -mmacosx-version-min=10.7 -O2 -arch x86_64 -fPIC -Wall -W -DQT_NO_DEBUG -I/usr/local/Cellar/qt/4.8.7_2/mkspecs/unsupported/macx-clang-libc++ -I. -I/usr/local/Cellar/qt/4.8.7_2/include -I../.. -I. -o strfn.o ../../unrar/strfn.cpp ../../unrar/strfn.cpp:240:10: error: use of undeclared identifier 'wcsicomp'; did you mean 'wcsicompc'? return wcsicomp(Str1,Str2); ^~~~ wcsicompc ../../unrar/strfn.cpp:235:5: note: 'wcsicompc' declared here int wcsicompc(const wchar Str1,const wchar Str2) ^ 1 error generated. make: * [strfn.o] Error 1

Have a good day

— Reply to this email directly or view it on GitHub https://github.com/kode54/File_Extractor/issues/2.