User forums > Using Code::Blocks

Problem building ttmath library in 64 bit Windows.

(1/8) > >>

Zachary1234:
I am running 64 bit Windows 10 Home edition.  I am using the 64 bit TDM C++ compiler.
I am running Code::Blocks 17.12.

I am trying to compile a 64 bit .dll file for the ttmath library.

I have imported all source files and all headers.  There are no further dependencies.
Code::Blocks seems to insist on importing any header and source directories
into separate folders named Sources and Headers.

So now, for reasons I cannot repair, it seems that certain #include statements
fail to find certain .h files.  Can someone reply to me, telling me how
to get this to compile (build) the .dll while detecting the .h files,
which are in fact present?

stahta01:
http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28general%29#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F

oBFusCATed:

--- Quote ---It does not need to be compiled first because the whole library is written as the C++ templates.
--- End quote ---
Have you read this in the main ttmath page?
This means that the library is header only, so there isn't anything you can put in a dll.
You just include it in your executable project, set the correct search path for the compiler (project -> build options -> search path -> compiler) and you're done.

Zachary1234:
-I have tried doing this too, but the only thing that it gives me is the same four errors;
that apparently four files in the samples directory can't find ttmath.h,
a situation that I don't know how to rectify.  I'm getting the same error
messages as in the attached images.  What do I do to fix things from here?

oBFusCATed:

--- Quote from: oBFusCATed on October 23, 2018, 10:29:01 am ---You just include it in your executable project, set the correct search path for the compiler (project -> build options -> search path -> compiler) and you're done.

--- End quote ---

Navigation

[0] Message Index

[#] Next page

Go to full version