bugpi-calculator - Bugs: bug #20216, Compiler Errors

 
 

bug #20216: Compiler Errors

Submitted by:  Ryan Niebur <ryan52>
Submitted on:  Wed 20 Jun 2007 02:42:55 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Open

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Wed 20 Jun 2007 02:48:30 AM UTC, comment #1:

Never mind that question.
That was really stupid of me!

Ryan Niebur <ryan52>
Wed 20 Jun 2007 02:42:55 AM UTC, original submission:

I get the following compiler errors/warnings:

In file included from main.c:38:
algorithms.h:9: error: two or more data types in declaration specifiers
make: *** [main.o] Error 1

Then, after I fixed that and retried the compile I got:

cc -g -pedantic -Wall -O2 -c -o main.o main.c
cc -g -pedantic -Wall -O2 -c -o mymath.o mymath.c
cc -g -pedantic -Wall -O2 -c -o algorithms.o algorithms.c
algorithms.c: In function ‘john_wallis’:
algorithms.c:142: error: ‘i’ undeclared (first use in this function)
algorithms.c:142: error: (Each undeclared identifier is reported only once
algorithms.c:142: error: for each function it appears in.)
make: *** [algorithms.o] Error 1

Finally, after I fixed that I got a successful build!

I have one question about it also. Why are you using a long double for i when i is storing whole numbers?

Ryan Niebur <ryan52>

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by ryan52 (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 20 Jun 2007 02:43:40 AM UTCryan52Carbon-CopyRemoved ryan52=>-
    Wed 20 Jun 2007 02:42:55 AM UTCryan52Carbon-Copy-=>Added ryan52

    Back to the top


    Powered by Savane 3.1-cleanup