69 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
1
vote
1
answer
2k
views
Implicitly declared classes in IntellijIDEA - how to deactivate that feature
First of all, I am a beginner in programming, so please don't expect me to now a lot about this.
I am working on a project for my programming course in computer science, where we use JUnit for tests ...
0
votes
1
answer
124
views
Spinlock functions generating error in xv6 - how to fix "Implicit declaration of function"?
I am currently trying to run a test program in xv6 (downloaded directly from https://github.com/mit-pdos/xv6-public), through WSL. It looks like this:
#include "types.h"
#include "stat....
2
votes
2
answers
199
views
What does C or GCC do when implicit function declaration exists
#include <stdio.h>
int main(void)
{
float a, b;
a = 0.0f, b = 1.0f;
printf("%d\n", plus(a, b));
return 0;
}
int plus(double a, double b)
{
printf("%lf %lf\n", a, ...
0
votes
2
answers
182
views
Why does the constructor of a non-private inner member class need a variable representing the immediately enclosing instance of this class?
I am very curious about this question. The Java Language Specification has told me part of the reason:
In a class instance creation expression for a non-private inner member class, §15.9.2 specifies ...
1
vote
1
answer
565
views
How to understand implicitly declared in the right way?
As per the document, which says that the constructor, deconstructor and asignment operator of std::array are implicitly declared. How to understand that?
I fully understand default declared functions(...
5
votes
1
answer
99
views
Implicit exception specification differs for inline and out-of-line definition?
Consider the following example:
#include <iostream>
struct X
{
X() = default;
X(const X&) = default;
X(X&&) = default;
X& operator = (const X&) = default;
...
1
vote
1
answer
1k
views
Can not call BPF kernel functions from BPF programs (Implicit Function Declaration Warning)
I'm currently working with BPF Kernel Functions (kfuncs) and have been referencing the documentation provided in the BPF Kernel Functions (kfuncs). My primary objective is to create a new kfunc to ...
0
votes
2
answers
571
views
Warning: implicit declaration of function 'showMenu' [-Wimplicit-function-declaration] [duplicate]
I get this weird warning message in Visual Studio Code the whole time and have no idea what else I should change.
Message:
warning: implicit declaration of function 'showMenu' [-Wimplicit-function-...
2
votes
1
answer
356
views
Apparently erroneous implicit declaration of function warning
I am getting a warning for lstat being implicitly declared, but it should be explicitly declared in the included header.
Compiling the following:
// Standard library
#include <stdio.h>
// ...
0
votes
0
answers
28
views
Implicit array of Funcs cannot be inferred (no best type found for implicitly typed array) [duplicate]
The following code gives the error:
no best type found for implicitly typed array
But why? All methods have the same signature, so I'd expect the type inference to succeed.
Notes:
I'm using .NET ...
1
vote
2
answers
337
views
Implicit conversion declared in companion object is not called
I am trying sample programs on Scala implicits. I am trying to implement one solution from the "Scala for the Impatient" book.
I have written as Fraction class having two member variables ...
1
vote
0
answers
740
views
Visual studio error: implicit declaration of function
why is this error coming implicit declaration of function 'scanf_s'. scanf is not working in visual studio even after writing scanf_s instead of scanf?.
#include<stdio.h>
int main()
{
printf(...
1
vote
3
answers
191
views
Implicit declaration of function in doubly linked list using C
This isn't the final implementation of the program, but the program itself was a bit long so I decided to create it in small chunks instead. I'm running into an error that says
implicit declaration ...
user avatar
user17441147
1
vote
2
answers
1k
views
Implicit Declaration of Function in C on CodeBlocks
Hello I am practicing my knowledge in C language I am trying to make a simple calculator but I encountered this warning Implicit Declaration of Function but the function that I called has been ...
-2
votes
2
answers
696
views
Implicit declaration of function with structs
I am trying to fix my last implicit declaration of a function by creating the prototype function in my header file. The lab is to write structs and currently I have my Main.c, RandomNums.h, and ...