I kept getting this warning whats wrong

This is a discussion on I kept getting this warning whats wrong within the C Programming forums, part of the General Programming Boards category; ld32: WARNING 110: Floating-point parameters exist in the call for "printf", a V ARARG function, in object "ass.o" without a ...

  1. #1
    Registered User
    Join Date
    Feb 2002
    Posts
    2

    I kept getting this warning whats wrong

    ld32: WARNING 110: Floating-point parameters exist in the call for "printf", a V
    ARARG function, in object "ass.o" without a prototype -- would result in invalid
    result. Definition can be found in object "/usr/lib32/mips3/libc.so"


    int main()
    {
    float salary, rate;
    int hours, overtime;

    hours = 0;
    while(hours > 40 || hours < 0)
    {
    printf("Enter number of hours worked:\n " );
    scanf( "%d", &hours );
    }


    //if ( hours < 0 || hours >40)
    //printf("The number of hours should not exceed 40, please try again\n");

    printf("Enter number of overtime hours worked:\n");
    scanf( "%d", &overtime);

    if (overtime <0 || overtime>72)
    printf("The number of hours should not exceed 72, please try again\n");

    printf( "Enter hourly rate of the worker: $ " );
    scanf( "%f", &rate );

    salary = (float) (overtime * 1.5 * rate + hours * rate);

    printf( "Salary is %f", salary);

    return 0;
    }

  2. #2
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    Are you including any headers? Your code example doesn't list them. You're getting a linker error.

    Quzah.
    Hope is the first step on the road to disappointment.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. pointers, structures, and malloc
    By lugnut in forum C Programming
    Replies: 24
    Last Post: 10-09-2008, 04:52 PM
  2. GradeInfo
    By kirksson in forum C Programming
    Replies: 23
    Last Post: 07-16-2008, 03:27 PM
  3. The Interactive Animation - my first released C program
    By ulillillia in forum A Brief History of Cprogramming.com
    Replies: 48
    Last Post: 05-10-2007, 02:25 AM
  4. God
    By datainjector in forum A Brief History of Cprogramming.com
    Replies: 746
    Last Post: 12-22-2002, 11:01 AM
  5. Interface Question
    By smog890 in forum C Programming
    Replies: 11
    Last Post: 06-03-2002, 05:06 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21