![]() |
|
|
#1 |
|
Newbie Member
Join Date: Oct 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0 ![]() |
" conflicting types " error!!
when i compile a simple program in Dev C++ i get error:" conflicting types for 'myf' " Code:
#include <stdio.h>
#include <stdlib.h>
int main()
{
myf(3.0);
return 0;
}
double myf(double x)
{
return x;
}
Last edited by shabbir; 10-29-2006 at 10:09 AM. Reason: Code formating. |
|
|
|
|
|
#2 |
|
Go4Expert Founder
![]() |
Re: " conflicting types " error!!
You have posted it as an Article under the Article / Source code section. I have moved it to the Queries and Discussion forum. Use the code blocks for putting codes in the post I am not sure why there should be an error but I dont have the compiler so I could not solve it but try putting the function body above main and see if it solves the problem. |
|
|
|
|
|
#3 | |
|
Contributor
Join Date: May 2006
Posts: 81
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 4 ![]() |
Re: " conflicting types " error!!Quote:
To rectify it, provide the prototype of the function and stay happy.
__________________
Technological progress is like an axe in the hands of a pathological criminal. |
|
|
|
|
![]() |
|
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
| Bookmarks | |
|
|
|
|||||||||||||||||||||||||||||||||||||