|
From: Greg C. <chi...@mi...> - 2003-05-19 17:48:49
|
Mark Eggenstein wrote: > > Is it possible to name your main-procedure other than main() ? You'd have to download the startup code and hack it. That is not the solution to your problem, though. > undefined reference to `WinMain@16' You get this message when you define neither main() nor WinMain(). You don't have to worry about it if you define one of those functions, once only. > I can't have a main() (clashes > with other main()s in other files). There can be only one main(). Execution has to begin at exactly one point. Pick the one main() you really want to call at startup. Rename the others and have the real main() call them. > Even if that would be acceptable, bringing in <iostream> causes the > programm to abort with a memory fault. Maybe the startup code needs to initialize streams. |