can u do a c++ program without main function.....?
shri007 0 Newbie Poster
Recommended Answers
Jump to Post>can u do a c++ program without main function.....?
It's splitting hairs, but yes, you can if your compiler supports alternative entry points. For example, Microsoft's CL compiler supports WinMain as an entry point instead of main.
Jump to PostGCC's linker supports alternate entry point names
ld - The GNU linker
-e entry
--entry=entry
Use entry as the explicit symbol for beginning execution of your
program, rather than the default entry point. If there is no
symbol named entry, the linker will try to parse entry as …
Jump to PostAnd it also got deleted.
Do not mention, plug or refer to any product, service, or website you are affiliated with anywhere outside of Business Exchange forums specifically designated for this purpose
:)
All 10 Replies
Cpfreak 0 Newbie Poster
sanjeevarao -4 Newbie Poster
Narue 5,707 Bad Cop Team Colleague
gerard4143 371 Nearly a Posting Maven
alexchen -12 Junior Poster
jonsca 1,059 Quantitative Phrenologist Team Colleague Featured Poster
Jason Giggs 1 Junior Poster in Training
jonsca 1,059 Quantitative Phrenologist Team Colleague Featured Poster
Jason Giggs 1 Junior Poster in Training
Nick Evan 4,005 Industrious Poster Team Colleague Featured Poster
jonsca commented: Thanks Santa! +6
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.