bugGNU Kart - Bugs: bug #47047, Compile Error - 'rpow' was not...

 
 

bug #47047: Compile Error - 'rpow' was not declared in this scope

Submitter:  David Benoit <benoid64>
Submitted:  Tue 02 Feb 2016 09:43:06 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  sebdiaz
Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 02 Feb 2016 09:43:06 PM UTC, original submission:  
  • Expected Result: Program compiles without errors
  • Actual result: recieved the error:


g++ -DHAVE_CONFIG_H -I.  -DDATADIR='"/usr/local/share/gnukart"'     -MT Particle.o -MD -MP -MF .deps/Particle.Tpo -c -o Particle.o Particle.cpp
Particle.cpp: In member function ‘void Particle::integrate(real)’:
Particle.cpp:32:30: error: ‘rpow’ was not declared in this scope
   velocity *= rpow(damp, time);
                              ^
Makefile:688: recipe for target 'Particle.o' failed
make[1]: * [Particle.o] Error 1

  • Steps to reproduce

   1) cd to project dir
   2) execute configure script
   3) make
   4) error occurs

  • Steps to fix

  1) change line 32 of src/Particle.cpp from:
       velocity *= rpow(damp, time);
    to:
       velocity *= pow(damp, time);
  2) Program compiles and seems to run fine

David Benoit <benoid64>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by benoid64 (Submitted the item)
  • -email is unavailable- added by benoid64
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-06-23 sebdiaz StatusIn Progress Fixed
    2017-06-23 sebdiaz StatusNone In Progress
        Assigned toNone sebdiaz
    2016-02-02 benoid64 Carbon-Copy- Added benoid64

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code