LINUX.ORG.RU

bicom - x86_64 [c/c++ неосилятор]


0

0

пытаюсь собрать bicom [http://www3.sympatico.ca/mt0000/bicom/]:

bash-3.1# uname -a
Linux mobilestar 2.6.32.12 #1 SMP Wed Apr 28 18:44:33 GMT 2010 x86_64 Intel(R) Pentium(R) Dual CPU T2370 @ 1.73GHz GenuineIntel GNU/Linux
bash-3.1# g++ --version
g++ (GCC) 4.2.3
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

bash-3.1# g++ -O2 -fPIC -o bicom *.cpp
bicom.cpp: In function 'int main(int, char**)':
bicom.cpp:74: warning: deprecated conversion from string constant to 'char*'
exclude.cpp:68:4: warning: no newline at end of file
bash-3.1# cat * > test.in
bash-3.1# md5sum -b test.in
9942aa9300f772cb5d1e4be7239e4e7e *test.in
bash-3.1# ./bicom test.in test.in.bicom
bash-3.1# ./bicom -d test.in.bicom test.out
bash-3.1# md5sum -b test.out
9942aa9300f772cb5d1e4be7239e4e7e *test.out
bash-3.1# ./bicom -pqwerty test.in test.in.bicom.enc
bash-3.1# ./bicom -d -pqwerty test.in.bicom.enc test.out.enc
bash-3.1# md5sum -b test.out.enc
503039b029728a7953cbbda8c017578b *test.out.enc
bash-3.1#

те
само сжатие работает, а шифрование - нет

ps
на i686 работает и сжатие и шифрование

Капитан очевидность говорит про то, что прога написана говено и не портируемо.

Поменялся размер long'а и указателей - и все коту в /dev/null.

Pavval ★★★★★
()
Ответ на: комментарий от botrops-schlegelii

Лучше используй типы из libc, в том числе uint32_t.

Pavval ★★★★★
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.