Author Topic: Compiling apfloat  (Read 4938 times)

Offline Xept

  • Single posting newcomer
  • *
  • Posts: 2
Compiling apfloat
« on: November 27, 2009, 05:26:01 pm »
Hey everyone

I'm quite new to programming, and I primarily use it to make numerical calculations in physics/maths.

But other than that, I'm not very good at it. I would really like to install/compile the apfloat library (http://www.apfloat.org/apfloat/), for use in some of my applications. Even though some guides "describe" how it's done, I really do not understand what they mean.

If it's possible to install the library to work with codeblocks, and someone would give a "for dummies" instruction on how to do so, I would be very grateful.

Thanks a lot
Xept

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: Compiling apfloat
« Reply #1 on: November 27, 2009, 09:08:21 pm »
Code::Blocks is an IDE.

Your question makes little sense; DOES YOUR COMPILER support the library?
Does Code::Blocks SUPPORT YOUR COMPILER?

If yes to both; then you can likely use Code::Blocks with YOUR COMPILER to support the Library.

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline Xept

  • Single posting newcomer
  • *
  • Posts: 2
Re: Compiling apfloat
« Reply #2 on: November 28, 2009, 01:00:38 am »
My compiler is supported by codeblocks. I use mingw gcc, which i think was installed autamically. I know that gcc supports apfloat, but I'm not sure whether there is difference between gcc and mingw gcc.

But I still haven't figured out installing the apfloat library.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: Compiling apfloat
« Reply #3 on: November 28, 2009, 02:14:35 am »
My compiler is supported by codeblocks. I use mingw gcc, which i think was installed autamically. I know that gcc supports apfloat, but I'm not sure whether there is difference between gcc and mingw gcc.

But I still haven't figured out installing the apfloat library.

MinGW GCC is an Windows compatible build of GCC.

EDIT: I have never used or heard of the apfloat library before today.
If this is a student project; you better know assembly; good luck you will need it.
Note: Code::Blocks has no official support for assembly code.

Edit: The apfloat library seems to support Microsoft Visual C++, Borland C++ (v 5.5), or djgpp (v 2). I saw no pre-built binaries for MinGW GCC.

If you are an experienced programmer and required to use GCC; you can build the apfloat library using MinGW GCC.
If not, I suggest deciding on a different compiler. Or learning how to use the pre-built Microsoft Visual C++ files with MinGW GCC. (This might be easy to impossible to do.)

Normally under windows, a user never installs a library.

1. You need to read the library site for more information.
2. You need to learn the basic of C/C++ programming; this site does NOT teach programming.

If you wish to build apfloat library read this link below
http://www.apfloat.org/apfloat/makefile.html

If you just wish to use the apfloat library; I suggest you try to do that.
http://www.apfloat.org/apfloat/2.41/
Read the library documentation!

NOTE: The site is to support using Code::Blocks with the supported Compilers; or on how to add support for a non-supported Compiler. It is NOT to teach a person the basics on how to use a compiler, linker, or assembler.

Please turn on Full Compiler Logging till you have learned the basics of how your Compiler and Code::Blocks work together.
Link to direction to turn on Full Compiler Logging
http://wiki.codeblocks.org/index.php?title=FAQ#Q:_How_do_I_troubleshoot_an_compiler_problem.3F


Tim S.

 
« Last Edit: November 28, 2009, 04:50:02 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org