Answer Posted / naendra allam
Asume abc.c is the program
--------\abc.c\---------
#include <stdio.h>
#include <stdlib.h>
int naren()
{
printf("Hi--- Ther is no main() here.\n");
exit(EXIT_SUCCESS); //Not supposed to use 'return 0;'
}
-----------------------
//compilation with GCC
$gcc -c abc.c
---> which generates abc.o
$ld --dynamic-linker /lib/ld-linux-so.2 -oabc abc.o -enaren
-lc
---> which generates executable 'abc'
$./abc
Hi--- Ther is no main() here.
--->you ran the program.
ALL THE BEST
Narendra Allam
IVTL INFOVIEW
| Is This Answer Correct ? | 12 Yes | 5 No |
Post New Answer View All Answers
How to Determine if a combobox is in dropped state?
What is the process of exception handling in delphi?
How to Convert a number from one base to another?
How to convert a .dfm file to text and vise versa?
How to Use an animated cursor?
Where can I get a copy of Delphi?
How to Use JPEGs from resource files ?
How to Specify an overlay image for a node in a treeview ?
'Translate error, value out of bounds' error what does these errors mean?
How to use the Find Error entry under the search heading of the menu bar?
I'm using Delphi 4/5 and have am trying to fill a RichEdit control with both European characters and Thai characters - while I can change character colours the font stays with what was selected for the control:- reLangB.SelAttributes.Color :=dCol; reLangB.SelAttributes.Name :=FontName[dLang]; reLangB.SelAttributes.Charset :=FontChar[dLang]; reLangB.SelAttributes.Style :=[]; reLangB.Lines.Add(dText); The FontName and FontChar arrays contain the font info, and using a similar method for Captions and EditBoexes works! Anybody any ideas? Thanx in advance!
what are Hetergenious joins ?
How to Return application's exit code?
How to Show two forms allowing the first to retain focus ?
How to print an HTML document from inside of your application?