User forums > Using Code::Blocks

Problem building ttmath library in 64 bit Windows.

<< < (6/8) > >>

stahta01:
STOP USING PRECOMPILED HEADERS; you do not know enough to use them right.

Find and delete this file "ttmathobjects.h.gch" The gch is the file extension GCC uses for Precompiled Headers (PCH).

Tim S.

stahta01:
I give up I have never spent this much time with a newbie who can not learn to use code tags.
Do you just ignore the links I post?

Goodbye.

Tim S.

Zachary1234:
I don't mean to be a pain, it's just that I'm trying to build this library from source in 64 bit mode,
and for reasons I havn't been sure about I'm trying to eliminate the remaining build errors.
I'm just not familar with hour this particular code base, the ttmath library, is coded.

The file ttmathobjects.h.gch does not exist to be deleted, which brings me up to date with you.


-------------- 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))
 

stahta01:
STOP TRYING TO COMPILE THE HEADERS.

Remove them from the project if that is the only way you know to stop trying to compile them.

READ THIS LINK OR I WILL ASK YOU TO BE BANNED FROM THIS WEBSITE.
http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28general%29#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F

Tim S.

Zachary1234:
Okay then.  Only including the 5 classes inside samples, I am still left with:


--- Code: ----------------- Build: Release in Numbers (compiler: GNU GCC Compiler)---------------

g++.exe  -o bin\Release\Numbers.exe obj\Release\ttmath-0.9.3\samples\big.o obj\Release\ttmath-0.9.3\samples\big2.o obj\Release\ttmath-0.9.3\samples\int.o obj\Release\ttmath-0.9.3\samples\parser.o obj\Release\ttmath-0.9.3\samples\uint.o obj\Release\Numbers\main.o  -s -m64 
obj\Release\ttmath-0.9.3\samples\big2.o:big2.cpp:(.text+0x10): multiple definition of `SimpleCalculating(ttmath::Big<1ull, 2ull> const&, ttmath::Big<1ull, 2ull> const&)'
obj\Release\ttmath-0.9.3\samples\big.o:big.cpp:(.text+0x10): first defined here
obj\Release\ttmath-0.9.3\samples\big2.o:big2.cpp:(.text+0x290): multiple definition of `CalculatingWithCarry(ttmath::Big<1ull, 2ull> const&, ttmath::Big<1ull, 2ull> const&)'
obj\Release\ttmath-0.9.3\samples\big.o:big.cpp:(.text+0x290): first defined here
obj\Release\ttmath-0.9.3\samples\big2.o:big2.cpp:(.text.startup+0x0): multiple definition of `main'
obj\Release\ttmath-0.9.3\samples\big.o:big.cpp:(.text.startup+0x0): first defined here
obj\Release\ttmath-0.9.3\samples\int.o:int.cpp:(.text.startup+0x0): multiple definition of `main'
obj\Release\ttmath-0.9.3\samples\big.o:big.cpp:(.text.startup+0x0): first defined here
obj\Release\ttmath-0.9.3\samples\parser.o:parser.cpp:(.text.startup+0x0): multiple definition of `main'
obj\Release\ttmath-0.9.3\samples\big.o:big.cpp:(.text.startup+0x0): first defined here
obj\Release\ttmath-0.9.3\samples\uint.o:uint.cpp:(.text.startup+0x0): multiple definition of `main'
obj\Release\ttmath-0.9.3\samples\big.o:big.cpp:(.text.startup+0x0): first defined here
obj\Release\Numbers\main.o:main.cpp:(.text.startup+0x0): multiple definition of `main'
obj\Release\ttmath-0.9.3\samples\big.o:big.cpp:(.text.startup+0x0): first defined here
collect2.exe: error: ld returned 1 exit status
Process terminated with status 1 (0 minute(s), 1 second(s))
5 error(s), 0 warning(s) (0 minute(s), 1 second(s))
 

--- End code ---

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version