Use this tag for questions about entry points to executables (programs); e.g., the "main()" function in most programming languages. If your question is programming language specific, tag that: language as well e.g. C, C++, Java etc.
Questions tagged [program-entry-point]
2997 questions
0
votes
1 answer
Calling arguments from main() in C from Python with ctypes
I'm trying to call a main() from open-plc-utils/slac/evse.c via ctypes. Therefor I turned the c file into a shared object (.so) and called it from Python.
from ctypes import *
so_file = "/home/evse/open-plc-utils/slac/evse.so"
evse =…

c0nr3f
- 87
- 7
0
votes
0 answers
C++ Segmentation Fault: 11 while scanning arguments
I am sure this question should be an easy answer, but I have been stumped for a while now. In my code, I have the main function: auto-generated, with the arguments as parameters. Then, I process the arguments and check if flags should be enabled or…

cold10
- 130
- 8
0
votes
1 answer
Python main method options
let's assume that I have two python scripts.
One of them is like:
def sum(x,y):
return x+y
def main():
sum()
if __name__ = '__main__':
main()
The other ones:
def sum(x+y):
return x+y
if __name__ == '__main__'':
sum()
What…
user16151841
0
votes
2 answers
Why a java program with multiple main methods is not giving any error?
File Name = multiple_main_methods.java
class multiple_main_methods_two {
public static void main(String[] args){
System.out.println("Class second");
}
}
class multiple_main_methods_one {
public static void main(String[] args){
…

preetika
- 11
- 1
0
votes
0 answers
iOS Bundling failed 305ms While trying to resolve module `firebase` from file `C:...AuthProvider.js`, the package `C:...firebase\index`. Indeed, none
I have been getting the error for over two weeks now. I have tried clearing my cache, reinstalling firebase, deleting node modules, and downgrading firebase. I am running out of ideas on what to try next. The app I am working on uses Expo-CLI, React…

Jxvny
- 1
0
votes
0 answers
I have one commit on my branch, why does rebase onto main step through each new commit on main?
I have one commit on my branch which has modified 6 files, but when I try git rebase --pull origin main, or just rebase my branch on top of main, I am forced to step through each new commit on main separately.
Why is rebase not just prompting to…

Ali
- 193
- 3
- 13
0
votes
1 answer
How to configure Run Configuration to execute Main function in JetBrains Rider
I am having troubles configuring my Rider project configuration to run my Main function when I'd like to run the project (which is a simple Console App). Since I am new to the whole C# environment, I am kinda struggling here. What do I need to do,…

Remo
- 1,112
- 2
- 12
- 25
0
votes
1 answer
Can't execute program in the older Go version
I'm trying to build program found on github.(https://github.com/ginuerzh/gimme-bitcoin-address)
I have been programming in golang for half a year, but I have never encountered a situation where the program lacks the "go.mod" file or the main…

0x0uer
- 69
- 4
0
votes
1 answer
Compiling error in Mac OS X
I am trying to compile a file in Mac OS X but keep on getting the error
Undefined symbols:
"_main", referenced from:
start in crt1.10.6.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
Could any one help to find out what this…

noddy
- 1,010
- 4
- 14
- 27
0
votes
1 answer
How to write a unit test using Pytest for the main function in Python
I am new with unit testing and am confused about a lot of things. In the project I have been inherited, there is a __main__.py file, in which there is only one function:
import some_class
def func1 (some_instance) -> bool:
#some code
…

wikofad877
- 33
- 4
0
votes
1 answer
How to include your run-time code in a main method in Python?
This was asked at the end of a Python challenge. [Here is the link to the challenge][1]
I would really appreciate it if you could explain it to me or address me to documentation in this subject.
I have searched for it and I am not sure if the…

Roya Salehi
- 3
- 3
0
votes
3 answers
Does ac **av and argc, *argv[] do the same thing in C
ac and av are passed as argument to main function sometimes instead of argc and *argv[].
Do they do the same thing?

Jotham Ntekim
- 23
- 4
0
votes
2 answers
Getting the Tried calling: []("main") error
Hi I am working on the London Brewery clima app but I am getting the Tried calling:. I have already looked up other solutions to this problem but they didn't work.
This is my code:
MAIN.DART
import 'package:flutter/material.dart';
import…

Diego Salvati
- 11
- 3
0
votes
3 answers
leetcode 1st problem called two_sum im geting error,please help me with the mistake what i have done
this is my leetcode 1st day 1st problem called two_sum am getting an error, please help me with the mistake what I have done,
in vs code this, below code was getting no error and also no output, but in leetcode I getting an error :
Line 25: Char 5:…

B M PAVAN
- 86
- 7
0
votes
1 answer
Issue with referencing Winform form
I have bean having a issue referencing a winform form I initialize in main, the code for the referencing is as follows,
Form1 f1 = new Form1();
Application.Run(f1);
f1.changeText("Hello World");
the form itself is defined in another file.…

collent
- 13
- 2