Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: What is d_main.cpp and where is it?  (Read 13109 times)

0 Members and 1 Guest are viewing this topic.

EimGhey

    Topic Starter


    Newbie

    • Experience: Beginner
    • OS: Unknown
    What is d_main.cpp and where is it?
    « on: July 28, 2016, 06:20:17 PM »
    I need to edit my d_main.cpp since it doesn't support Floating Point Operations.  I am installing a Program on my Raspberry Pi and keep getting Floating Point Exceptions.

    BC_Programmer


      Mastermind
    • Typing is no substitute for thinking.
    • Thanked: 1140
      • Yes
      • Yes
      • BC-Programming.com
    • Certifications: List
    • Computer: Specs
    • Experience: Beginner
    • OS: Windows 11
    Re: What is d_main.cpp and where is it?
    « Reply #1 on: July 28, 2016, 06:53:52 PM »
    As you've left us to guess, I can only suppose  that d_main.cpp is part of ZDoom.  I can find no references to this particular issue so you'll probably want to provide more details. A Floating Point Exception would be when the program performs a floating point operation unsupported on the hardware.

    d_main.cpp itself can be acquired as part of the source code to the program in question.
    I was trying to dereference Null Pointers before it was cool.

    Geek-9pm


      Mastermind
    • Geek After Dark
    • Thanked: 1026
      • Gekk9pm bnlog
    • Certifications: List
    • Computer: Specs
    • Experience: Expert
    • OS: Windows 10
    Re: What is d_main.cpp and where is it?
    « Reply #2 on: July 28, 2016, 07:07:51 PM »
    Quote
    doesn't support Floating Point Operations. 
    Does that mean Raspberry Pi does not have the hardware?
    That is a very minimal controller that is being used as a PC. It is not designed to do all the things a desktop might need to do.
    Without doing research, I think it will not do loading point for two or three reasons.
    1. It is a minimal CPU with no math chip.
    2. It task almost  a thousand lines of code to do that in software.
    3. Anybody who needs floating pint in a tiny  package needs to rethink the design.

    Of course, you could interface a FPU as an external module.
    OR: Look here:
    http://raspberrypi.stackexchange.com/questions/545/does-the-raspberry-pi-have-hardware-floating-point-support


    EimGhey

      Topic Starter


      Newbie

      • Experience: Beginner
      • OS: Unknown
      Re: What is d_main.cpp and where is it?
      « Reply #3 on: August 01, 2016, 11:18:35 AM »
      Okay the I figured out where it was now why is ZDoom still not installing?

      Geek-9pm


        Mastermind
      • Geek After Dark
      • Thanked: 1026
        • Gekk9pm bnlog
      • Certifications: List
      • Computer: Specs
      • Experience: Expert
      • OS: Windows 10
      Re: What is d_main.cpp and where is it?
      « Reply #4 on: August 02, 2016, 12:03:28 AM »
      This might be relevant.
      http://doomwiki.org/wiki/Raspberry_Pi
      Quote
      The shareware version of Doom was used during development of the Raspberry Pi in its benchmarking tests, and was useful in debugging compilation issues when porting software to the Raspberry Pi's ARM1176JZF-S, a relatively rare ARMv6 variant. Chocolate Doom was the only source port available on the official Raspberry Pi Store until its closure in February 2016.

      Note: ARMv6 variant. This might  mean the code is not portable for versions of Raspberry Pi. See the site above and find somebody there who knows.