cmondestin / crunch

Automatically exported from code.google.com/p/crunch
Other
0 stars 0 forks source link

Problem to compile crunch #8

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

1. I have downloaded the latest version (April 2012) and the Makefile of 
http://code.google.com/p/crunch/issues/detail?id=1.
2. I went to the crnlib folder and I started make.

What is the expected output? What do you see instead?

It injured me with that words :

julien@julien-H61M-D2H-USB3:~/lib/crunch/crnlib$ make
g++ crn_arealist.cpp -o crn_arealist.o -c
In file included from crn_core.h:90:0,
from crn_arealist.cpp:4:
crn_types.h:15:31: erreur: expected initializer before ‘uint64’
crn_types.h:16:31: erreur: expected initializer before ‘int64’
crn_types.h:24:10: erreur: ‘uint64’ does not name a type
crn_types.h:25:10: erreur: ‘uint64’ does not name a type
crn_types.h:33:10: erreur: ‘int64’ does not name a type
crn_types.h:34:10: erreur: ‘int64’ does not name a type
In file included from crn_core.h:92:0,
from crn_arealist.cpp:4:
crn_traits.h:46:4: erreur: ‘__int64’ was not declared in this scope
crn_traits.h:46:4: erreur: patron de l'argument 1 est invalide
crn_traits.h:47:4: erreur: patron de l'argument 1 est invalide
In file included from crn_core.h:93:0,
from crn_arealist.cpp:4:
crn_mem.h: In function ‘T* crnlib::crnlib_new_array(crnlib::uint32)’:
crn_mem.h:132:7: erreur: ‘uint64’ was not declared in this scope
crn_mem.h:132:14: erreur: expected ‘;’ before ‘total’
crn_mem.h:133:11: erreur: ‘total’ was not declared in this scope
crn_mem.h:138:72: erreur: ‘total’ was not declared in this scope
In file included from crn_core.h:94:0,
from crn_arealist.cpp:4:
crn_math.h: At global scope:
crn_math.h:60:33: erreur: ‘crnlib::math::is_power_of_2’ declared as an 
‘inline’ variable
crn_math.h:60:33: erreur: ‘bool crnlib::math::is_power_of_2’ redeclared as 
different kind of symbol
crn_math.h:59:19: erreur: previous declaration of ‘bool 
crnlib::math::is_power_of_2(crnlib::uint32)’
crn_math.h:60:33: erreur: ‘uint64’ was not declared in this scope
crn_math.h:95:14: erreur: ‘uint64’ does not name a type
crn_math.h:206:14: erreur: ‘uint64’ does not name a type
In file included from crn_core.h:95:0,
from crn_arealist.cpp:4:
crn_utils.h:134:29: erreur: ‘crnlib::utils::write_val’ declared as an 
‘inline’ variable
crn_utils.h:134:29: erreur: ‘bool crnlib::utils::write_val’ redeclared as 
different kind of symbol
crn_utils.h:133:19: erreur: previous declaration of ‘bool 
crnlib::utils::write_val(int, void*&, crnlib::uint&, bool)’
crn_utils.h:134:29: erreur: ‘uint64’ was not declared in this scope
crn_utils.h:134:41: erreur: expected primary-expression before ‘void’
crn_utils.h:134:58: erreur: expected primary-expression before ‘&’ token
crn_utils.h:134:60: erreur: ‘buf_size’ was not declared in this scope
crn_utils.h:134:70: erreur: expected primary-expression before ‘bool’
In file included from crn_core.h:98:0,
from crn_arealist.cpp:4:
crn_win32_timer.h:7:12: erreur: ‘uint64’ does not name a type
crn_win32_timer.h:13:25: erreur: expected ‘)’ before ‘start_ticks’
crn_win32_timer.h:16:18: erreur: ‘timer_ticks’ has not been declared
crn_win32_timer.h:21:7: erreur: ‘uint64’ does not name a type
crn_win32_timer.h:24:14: erreur: ‘timer_ticks’ does not name a type
crn_win32_timer.h:25:14: erreur: ‘timer_ticks’ does not name a type
crn_win32_timer.h:26:35: erreur: ‘timer_ticks’ has not been declared
crn_win32_timer.h:29:14: erreur: ‘uint64’ does not name a type
crn_win32_timer.h:30:14: erreur: ‘uint64’ does not name a type
crn_win32_timer.h:33:7: erreur: ‘uint64’ does not name a type
crn_win32_timer.h:34:7: erreur: ‘uint64’ does not name a type
In file included from crn_core.h:101:0,
from crn_arealist.cpp:4:
crn_dynamic_wstring.h: In destructor 
‘crnlib::dynamic_wstring::~dynamic_wstring()’:
crn_dynamic_wstring.h:23:35: erreur: invalid application of ‘sizeof’ to 
incomplete type ‘crnlib_assume_failure’
crn_dynamic_wstring.h:23:35: erreur: patron de l'argument 1 est invalide
crn_dynamic_wstring.h:23:83: erreur: invalid type in declaration before ‘;’ 
token
crn_arealist.cpp: In function ‘void crnlib::area_fatal_error(const char*, 
const char*, ...)’:
crn_arealist.cpp:23:46: erreur: ‘_vsnprintf’ was not declared in this scope
make: *** [crn_arealist.o] Erreur 1

What version of the product are you using? On what operating system?

Latest version of crunch (April 2012)
Ubuntu 12.04 32bits

Please provide any additional information below.

Latest version of gcc

Original issue reported on code.google.com by juju.hin...@gmail.com on 3 Nov 2012 at 8:05