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 insert an InterBase BLOb in Delphi using LoadFromFile? 2
How to detect if the current user is logged in administrator?
'Translate error, value out of bounds' error what does these errors mean?
How to Dynamically drawing a transparent image ?
How to Use escape codes with the format() function ?
How to convert numbers into roman numerals?
How to Check available disk space on large drives?
How to debug an Apache Shared Module?
How to Use InvalidateRect()to repaint the entire form?
Why reusing or inheriting from a Remote Data Module is not a good idea?
What are IDAPI and SQL links ?
How to Get the filename and path of a local table?
How to get UpdateMode to work for TQuery on a SQL Server 7.0 table?
How to Migrate a project from Delphi 1 or 2 to Delphi 3 ?
How to install BDE network ?