69 questions
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 ...
2 votes
2 answers
188 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, ...
1 vote
1 answer
559 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(...
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 ...
2 votes
1 answer
349 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> // ...
1 vote
2 answers
328 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
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 ...
-2 votes
2 answers
691 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 ...