User forums > Using Code::Blocks
Problem building ttmath library in 64 bit Windows.
Zachary1234:
I have made the following changes, commenting out and replacing:
- typedef unsigned long uint;
+ typedef uint64_t uint;
- typedef signed long sint;
- #endif
+ typedef int64_t sint;
+ #endif
Are these the only removes and add changes, in these places,
inside ttmathtypes.h, that I need to make?
I am still getting three little errors left in ttmathtypes.h,
on lines 181, 202 and 236.
stahta01:
--- Quote from: Zachary1234 on October 30, 2018, 05:35:02 am ---I have made the following changes, commenting out and replacing:
- typedef unsigned long uint;
+ typedef uint64_t uint;
- typedef signed long sint;
- #endif
+ typedef int64_t sint;
+ #endif
Are these the only removes and add changes, in these places,
inside ttmathtypes.h, that I need to make?
I am still getting three little errors left in ttmathtypes.h,
on lines 181, 202 and 236.
--- End quote ---
I have no idea what you did so; I can not help you undo it.
I will attach the edited file because I am afraid you have no idea what to do to edit it.
Zachary1234:
That's fine, and the file that you just uploaded does coincide.
I am now getting those 3 errors inside the file
ttmathmisc.h
at three function declarations on lines 181,202 and 236.
What should I do about them?
stahta01:
--- Quote from: Zachary1234 on October 30, 2018, 05:51:31 am ---That's fine, and the file that you just uploaded does coincide.
I am now getting those 3 errors inside the file
ttmathmisc.h
at three function declarations on lines 181,202 and 236.
What should I do about them?
--- End quote ---
POST THE ERRORS IN CODE TAGS OR GO AWAY!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Tim S.
Zachary1234:
-------------- Build: Release in Numbers (compiler: GNU GCC Compiler)---------------
g++.exe -Wall -fexceptions -O2 -m64 -I..\ttmath-0.9.3 -c C:\Users\User\Desktop\ttmath-0.9.3\ttmath\ttmathmisc.h -o ..\ttmath-0.9.3\ttmath\ttmathmisc.h.gch
g++.exe -Wall -fexceptions -O2 -m64 -I..\ttmath-0.9.3 -c C:\Users\User\Desktop\ttmath-0.9.3\ttmath\ttmathobjects.h -o ..\ttmath-0.9.3\ttmath\ttmathobjects.h.gch
C:\Users\User\Desktop\ttmath-0.9.3\ttmath\ttmathmisc.h:181:8: error: 'uint' does not name a type
static uint CharToDigit(uint c)
^
C:\Users\User\Desktop\ttmath-0.9.3\ttmath\ttmathmisc.h:202:8: error: 'sint' does not name a type
static sint CharToDigit(uint c, uint base)
^
C:\Users\User\Desktop\ttmath-0.9.3\ttmath\ttmathmisc.h:236:8: error: 'uint' does not name a type
static uint DigitToChar(uint digit)
^
Process terminated with status 1 (0 minute(s), 0 second(s))
3 error(s), 0 warning(s) (0 minute(s), 0 second(s))
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version