User forums > Using Code::Blocks

Problem building ttmath library in 64 bit Windows.

<< < (3/8) > >>

stahta01:

--- Quote from: stahta01 on October 23, 2018, 10:03:02 am ---http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28general%29#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F

--- End quote ---

Till you learn how to post a build log; I see no way anybody can ever help you.

Tim S.

Zachary1234:
Is this particular build log attachment of any further explanatory use?

stahta01:
So, do you want to add the project search path so the project can find the header?

If you do not know how, state that!

Edit: You should only try to build one sample C++ file per target/project till you get that one to work.

Tim S.

stahta01:
Remember to fix the ttmath library code!

Edit: Attached my test project as an zip file.


--- Code: ---Index: ttmath/ttmathtypes.h
============================================================ =======
--- ttmath/ttmathtypes.h (revision 1132)
+++ ttmath/ttmathtypes.h (working copy)
@@ -235,13 +235,13 @@
/*!
on 64bit platforms one word (uint, sint) will be equal 64bits
*/
- typedef unsigned long uint;
+ typedef uint64_t uint;

/*!
on 64bit platforms one word (uint, sint) will be equal 64bits
*/
- typedef signed long sint;
- #endif
+ typedef int64_t sint;
+ #endif

/*!
on 64bit platforms we do not define ulint and slint

--- End code ---

Edit2: Shows where the CB Project should be extracted

--- Code: ---$ ls ttmath-0.9.3
bin/  CHANGELOG  COPYRIGHT  README  samples/  ttmath/  ttmath.cbp  ttmath.zip

--- End code ---

Tim S.

Zachary1234:
#include "ttmathbig.h"
#include "ttmathobjects.h"

- typedef unsigned long uint;
+ typedef uint64_t uint;

- typedef signed long sint;
- #endif
+ typedef int64_t sint;
+ #endif

I have made all these changes, and I am still getting the same compilation errors such
as I posted at the very beginning.  I am still getting the same 4 errors that cannot see
my 4 ttmath.h #include statements.  What can I do to repair this?

fatal error ttmath/ttmath.h: No such file or directory

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version