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.

2997 questions
0
votes
1 answer

Tiny C Compiler: Undefined symbol "main" when main is defined?

I have a main function, but when tcc goes to link everything together, it says its undefined. Why is this? I'm using a python build script, and arguments are passed as lists: ['v:/exe/tcc/tcc.exe', '-odist/***.exe', '-Llib/', '-llua5.1', '-lsoil',…
Colonel Thirty Two
  • 23,953
  • 8
  • 45
  • 85
0
votes
1 answer

will i have to call the applet from the main class?

I started a new JApplet project in my Netbeans IDE . While selecting a new project i selected swing GUI forms that contained JApplet.After the project initialization was over i see a main class i.e a class that contains the main method.Because i…
program-o-steve
  • 2,630
  • 15
  • 48
  • 67
0
votes
3 answers

Use back button to go to main view

I have an app with a main view and a set of sub-views, defined as XMLs. I load the main view with: @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); When I switch…
Pedro Santangelo
  • 143
  • 2
  • 13
0
votes
2 answers

getting the program arguments

I need to get program arguments and show them module Main ( main ) where import System ( getArgs ) main = do args<-getArgs print $ show args But it does nothing.Maybe my call incorrect? >main 3 4
0
votes
1 answer

Return to "Main" View Controller when app closes (and then starts)

I have a project with 2 view controllers, basically as Weather app or Stocks. App uses storyboard and switching between views with segues. 1-st view is "main", 2-nd is in-app settings. So I go to "settings" and then press home button. I need when…
artysx
  • 533
  • 5
  • 14
0
votes
2 answers

How to run instance methods from main

Sorry but I'm having a major brain fart here (guess that's what a few days of little sleep get you). Without changing anything to static how can I make a main() that will run this. package merger; import java.util.Random; public class another { …
Defc0n
  • 27
  • 3
  • 9
0
votes
2 answers

Can Pascal units be compiled as executables?

I like my libraries to double as executables. The desired behavior is: $ ./scriptedmain Main: The meaning of life is: 42 $ ./test Test: The meaning of life is: 42 How can I: Get scriptedmain.p to compile into a scriptedmain binary? Prevent test.p…
mcandre
  • 22,868
  • 20
  • 88
  • 147
0
votes
0 answers

Program ignores condition and enters it the function

/* USER CODE BEGIN Header */ /** ****************************************************************************** * @file : main.c * @brief : Main program body …
0
votes
0 answers

Get MainWindow Instance WPF

I have some custom extensions, which when i double-click on it, it launch program and every time as i do it, it creates new mainwindow. So i want not create, but update the first mainwindow. I searced many articles, but don't find a way how to do…
Bird
  • 1
  • 1
0
votes
0 answers

Statistic on Django admin Index page

I know that Django admin main page is in index.html. I want to change this page, and add some statistic things, like last 5 errors from DB. My question is: that it is possible, create model for main admin page and show in there some information like…
0
votes
0 answers

Below is a screenshot of the Entry Point error I get when I try to load an mp3 file into my script

def load_mp3_16k_mono(filename): """ Load a WAV file, convert it to a float tensor, resample to 16 kHz single-channel audio. """ res = tfio.audio.AudioIOTensor(filename) # Convert to tensor and combine channels tensor =…
0
votes
1 answer

What does "args" equal or return in "main" if it has no value, I.E. no args (arguments) were passed when the program was executed

I have this code here: try { System.out.print("There are args!: " + args[0]); } catch (Exception e) { System.out.print("No args"); } I am checking if arguments were passed when I executed the program. If no arguments are passed, and I try…
STC2
  • 23
  • 4
0
votes
1 answer

CPLEX inserting results to Excel Sheet in main method

I am creating a project where I have one model where one variable is always changing, namely ForecastMultiplier. I need to put the results of each iteration into an excel spreadsheet. You can find main down below: main { var source = new…
Anduliska
  • 11
  • 2
0
votes
0 answers

How to change my entry point of my angular app to a service?

My current main.ts is bootstrapping the output-dialog.module, which makes the entry point for the output-dialog.component.ts ... When I build my app, deploy it on Nexus, and I want other apps to use my app/lib, I want them to entry my app via the…
der papa
  • 35
  • 5
0
votes
1 answer

How do I specify the entry point location in a Manifest-file to run a jar-file?

I am trying to run a program I've downloaded ( https://github.com/ottiram/MMAX2 ) which comes as a jar-file on Ubuntu 22.04. When I do, it returns: "no main manifest attribute, in MMAX2.jar". When I check in /META-INF/MANIFEST.MF, that file only…