473,385 Members | 1,712 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

what is an implicit declaration of a function...

hello...upon compilation, i get a warning: "warning: implicit declaration of funciton funciton_name"

what, techicallly, is an implicit declaration? how/where would i look to track down the error?

im on linux btw.

thanks!
sam
Jul 15 '08 #1
3 2639
sicarie
4,677 Expert Mod 4TB
I'd start with Google
Jul 15 '08 #2
arnaudk
424 256MB
It means you're using a function without having declared it, so the compiler assumes that you're implicitly declaring it, i.e. declaring it by just calling it.

This can be because you mis-typed a function name, or forgot to include a header where it's declared, or just plain forgot to declare and define it yourself in the code such that it is declared in the scope where it is used. To track down the error look at the line number reported in the compiler warning.
Jul 15 '08 #3
It means you're using a function without having declared it, so the compiler assumes that you're implicitly declaring it, i.e. declaring it by just calling it.

This can be because you mis-typed a function name, or forgot to include a header where it's declared, or just plain forgot to declare and define it yourself in the code such that it is declared in the scope where it is used. To track down the error look at the line number reported in the compiler warning.

thank you so much, this is the clarity i was looking for. :)
Jul 15 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Jason | last post by:
Hi, Im running windows xp pro and compiling using dev c++ 4. I have the following situation: #include <iostream> #include <string> using namespace std; int main() {
2
by: Andy | last post by:
Hi, What is implicit extern "C" declaration in C++? Can anybody give me an example? Thanks a lot! Andy
28
by: Madhur | last post by:
Hello what about this nice way to open a file in single line rather than using if and else. #include<stdio.h> void main() { FILE *nd; clrscr();...
2
by: nick | last post by:
the following is my programming code and compile message why the warning message arise, have i done somethings wrong? #include<stdio.h> typedef struct card{ int abc; }card;
5
by: Christian Christmann | last post by:
Hi, in one file I've a function that is used by another file containing the main function: file1.c: .... void test( int a ) { ... } ....
6
by: Bart Rider | last post by:
I've written a short c-programm using srand48 and drand48. After compiling with gcc - gcc -o foo foo.c -W -Wall -pedantic -ansi - I get the warnings - foo.c: In function `main': foo.c:7:...
15
by: robert maas, see http://tinyurl.com/uh3t | last post by:
Here's the source: #include <stdio.h> #include <errno.h> main () { char* str = "9999999999"; long long int llin; char* endptr; /* Set by strtoll */ int nch; errno = 0; llin = strtoll(str,...
14
by: UNCManiac37 | last post by:
Hi, I'm very new to coding, so this is a newbie question. I'm trying to print out a banner using functions instead of main: int main () { banner1 (); } void banner1 (void) { cout...
1
by: samdomville | last post by:
Hello - I have a .c file that gives me a warning "implicit declaration of function function_name". However, I have #included the header file that #defines that funciton, so how is it possible to...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.