Skip to main content

Questions tagged [program-entry-point]

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.

-7 votes
0 answers
42 views

Multiple entry point in the project [closed]

I downloaded a game and its source code from github, i just want to explore and learn from it. Now the project contains game source code but also an integrated level editor, which I can't seem to ...
Leonardo The Leo People's user avatar
-2 votes
0 answers
31 views

Why do we declare public class at the start of Java code? [duplicate]

In java, whenever we write a program, the first line of the program always starts with public class name_of_class{} When I googled the reason of why we have to mention public class at the start of ...
aditya khera's user avatar
1 vote
1 answer
52 views

Is it a good practice to import functions from __main__.py?

My __main__.py module for my package is defined like so (simplified): def main(): ... # Start my GUI if __name__ == "__main__": main() It is also a package, with an __init__.py as ...
tomasvana10's user avatar
1 vote
1 answer
47 views

Scala Future strange behavior

What's wrong with this code? Why I can see only one output? What returns futureUserByName function? onComplete doesn't work for it as well. It must be just simple Future, but it doesn't work. import ...
Dmitriy Kolesnik's user avatar
0 votes
1 answer
90 views

In C programming language, can the main function begin with main() instead of int main()? [duplicate]

I'm reading the "C Programming Language, 2nd edition" by Dennis Ritchie and Brian W.Kernighan. On page 38, the main body of the program begins with main() instead of int main(), I believe ...
Greeshma's user avatar
-2 votes
2 answers
41 views

LINK2001,and LINK1120 errors visual studio 2022 CLR empty project

i am currently working on a web browser on visual studio 2022 and every time I execute the program these errors show up LINK2001 unresolved external symbol main and LINK1120 1 unresolved externals. So ...
user25910489's user avatar
28 votes
4 answers
4k views

How is Leetcode able to compile a C++ program without me writing a 'main()' function?

As far as I know, a C++ compiler looks for a function called main() in order to know where the program should start. But when I use the Leetcode site, the expected solution's code has no main function....
Shivani's user avatar
  • 667
1 vote
1 answer
55 views

Where am I initializing my main class twice?

I'm receiving the error Plugin already initialized!. I already know that this means that I'm initializing my main class twice and Bukkit/Spigot doesn't like this. I cannot seem to figure out where I'm ...
quietWind01's user avatar
0 votes
0 answers
25 views

Avoiding MSBuild version with GitHub action

Currently in my github actions i am using " uses: microsoft/setup-msbuild@v1" instead of updating this to newest version i was wondering if it's good idea to use @main insted to avoid ...
Vlad Filippovich's user avatar
0 votes
0 answers
56 views

WinForms - Call method in Threading, which calls method in main thread at the end of it

I've seen examples where the thread started in the WinForms class, using Threading.Start(), only calls a helper method defined in that class. Is it possible to use Threading to first invoke a method ...
josephwj's user avatar
0 votes
1 answer
112 views

In IntelliJ(2024.1.1) with the Scala Plugin(2024.1.20), Main.main is Failing with "Could not find or load main class org.public_domain.main"

UPDATE: Nestled deep within the large accepted answer is the way to fix this; i.e. rename the method from main to something else, or rename the object Main to something else. The conflict is a case ...
chaotic3quilibrium's user avatar
0 votes
1 answer
72 views

Compatible types for the main function

From ISO/IEC 9899:2024, 5.1.2.3.2, Program startup: The function called at program startup is named main. The implementation declares no prototype for this function. It shall be defined with a return ...
Harith's user avatar
  • 7,235
0 votes
0 answers
21 views

smina.exe Entry Point Not Found

I met an error when I tried to use Smina for docking. I installed Smina used order: conda install conda-forge::smina But it occurs this error when I run Smina: The Procedure entry point ?sync_flush@...
Ericatong's user avatar
0 votes
2 answers
22 views

Android - can i add EditText value to the android:text row of a TextView in activity_main and have it concatenate?

<EditText android:id="@+id/et_name" android:layout_width="match_parent" android:layout_height="48dp" android:layout_margin="20dp" android:...
getoffmylap's user avatar
1 vote
0 answers
98 views

Method 'main()' does not have signature 'public static void main(String[])'. The program cannot be started while main has this problem

When trying to complete a task ("Create a Dog class containing two String type fields: name and says. In the method main() create two Dog objects with different names (spot and scruffy) and ...
Nik's user avatar
  • 11

15 30 50 per page
1
2 3 4 5
201